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

redirectJournal() private méthode

private redirectJournal ( 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 redirectJournal($doctrine, $id)
    {
        $journal = $doctrine->getRepository('OjsJournalBundle:Journal')->find($id);
        $this->throw404IfNotFound($journal);
        return $this->redirect($this->get('ojs.journal_service')->generateUrl($journal));
    }