public indexAction ( $slug ) : |
||
$slug | ||
return |
public function indexAction($slug)
{
$em = $this->getDoctrine()->getManager();
/** @var Journal $journal */
$journal = $em->getRepository('OjsJournalBundle:Journal')->findOneBy(['slug' => $slug]);
$this->throw404IfNotFound($journal);
return $this->render('OjsSiteBundle:Lockss:index.html.twig', ['journal' => $journal]);
}