Ojs\JournalBundle\Controller\CitationController::showAction PHP Метод

showAction() публичный Метод

Finds and displays a Citation entity.
public showAction ( $id ) : Response
$id
Результат Symfony\Component\HttpFoundation\Response
    public function showAction($id)
    {
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        $this->throw404IfNotFound($journal);
        if (!$this->isGranted('VIEW', $journal, 'articles')) {
            throw new AccessDeniedException("You not authorized for this page!");
        }
        $em = $this->getDoctrine()->getManager();
        $entity = $em->getRepository('OjsJournalBundle:Citation')->find($id);
        if (!$entity) {
            throw $this->createNotFoundException('Unable to find Citation entity.');
        }
        $token = $this->get('security.csrf.token_manager')->refreshToken('ojs_journal_citation' . $entity->getId());
        return $this->render('OjsJournalBundle:Citation:show.html.twig', array('entity' => $entity, 'token' => $token));
    }