Ojs\SiteBundle\Controller\RedirectController::redirectArticle PHP Méthode

redirectArticle() private méthode

private redirectArticle ( Doctrine\Bundle\DoctrineBundle\Registry $doctrine, string | integer $id ) : RedirectResponse
$doctrine Doctrine\Bundle\DoctrineBundle\Registry
$id string | integer
Résultat Symfony\Component\HttpFoundation\RedirectResponse
    private function redirectArticle($doctrine, $id)
    {
        $article = $doctrine->getRepository('OjsJournalBundle:Article')->find($id);
        $this->throw404IfNotFound($article);
        return $this->redirect($this->generateUrl('ojs_article_withoutIssue_page', array('slug' => $article->getJournal()->getSlug(), 'article_id' => $article->getId())));
    }