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

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

Finds and displays an article entity
public showAction ( Article $article ) : Response
$article Ojs\JournalBundle\Entity\Article
Результат Symfony\Component\HttpFoundation\Response
    public function showAction(Article $article)
    {
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        if (!$this->isGranted('VIEW', $journal, 'articles')) {
            throw new AccessDeniedException("You not authorized for this page!");
        }
        $token = $this->get('security.csrf.token_manager')->refreshToken('ojs_journal_article' . $article->getId());
        return $this->render('OjsJournalBundle:Article:show.html.twig', ['entity' => $article, 'token' => $token]);
    }