Ojs\SiteBundle\Controller\RedirectController::redirectJournal PHP Метод

redirectJournal() приватный Метод

private redirectJournal ( Doctrine\Bundle\DoctrineBundle\Registry $doctrine, string | integer $id ) : RedirectResponse
$doctrine Doctrine\Bundle\DoctrineBundle\Registry
$id string | integer
Результат 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));
    }