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

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

public showAction ( $id ) : Response
$id
Результат Symfony\Component\HttpFoundation\Response
    public function showAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        if (!$this->isGranted('VIEW', $journal, 'design')) {
            throw new AccessDeniedException("You are not authorized for view this journal's design!");
        }
        /** @var Design $design */
        $design = $em->getRepository('OjsJournalBundle:Design')->find($id);
        $this->throw404IfNotFound($design);
        if ($design->getOwner() !== $journal) {
            throw new NotFoundException("Journal Design not found!");
        }
        $token = $this->get('security.csrf.token_manager')->refreshToken('ojs_journal_design' . $id);
        return $this->render('OjsJournalBundle:Design:show.html.twig', array('entity' => $design, 'token' => $token));
    }