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

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

Finds and displays a PublisherTheme entity.
public showAction ( integer $publisherId, PublisherTheme $entity ) : Response
$publisherId integer
$entity Ojs\JournalBundle\Entity\PublisherTheme
Результат Symfony\Component\HttpFoundation\Response
    public function showAction($publisherId, PublisherTheme $entity)
    {
        $em = $this->getDoctrine()->getManager();
        $publisher = $em->getRepository('OjsJournalBundle:Publisher')->find($publisherId);
        $this->throw404IfNotFound($publisher);
        if (!$this->isGrantedForPublisher($publisher)) {
            throw new AccessDeniedException("You are not authorized for this page!");
        }
        $token = $this->get('security.csrf.token_manager')->refreshToken('ojs_admin_publisher_theme' . $entity->getId());
        return $this->render('OjsJournalBundle:ManagerPublisherTheme:show.html.twig', ['entity' => $entity, 'publisher' => $publisher, 'token' => $token]);
    }