Ojs\CoreBundle\Service\Twig\OjsExtension::__construct PHP Метод

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

public __construct ( EntityManager $em = null, Symfony\Component\Routing\RouterInterface $router = null, Symfony\Component\Translation\TranslatorInterface $translator = null, JournalService $journalService = null, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage = null, Symfony\Component\HttpFoundation\Session\Session $session = null, Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$em Doctrine\ORM\EntityManager
$router Symfony\Component\Routing\RouterInterface
$translator Symfony\Component\Translation\TranslatorInterface
$journalService Ojs\JournalBundle\Service\JournalService
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$session Symfony\Component\HttpFoundation\Session\Session
$requestStack Symfony\Component\HttpFoundation\RequestStack
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
    public function __construct(EntityManager $em = null, RouterInterface $router = null, TranslatorInterface $translator = null, JournalService $journalService = null, TokenStorageInterface $tokenStorage = null, Session $session = null, RequestStack $requestStack, EventDispatcherInterface $eventDispatcher)
    {
        $this->em = $em;
        $this->router = $router;
        $this->journalService = $journalService;
        $this->tokenStorage = $tokenStorage;
        $this->session = $session;
        $this->translator = $translator;
        $this->requestStack = $requestStack;
        $this->eventDispatcher = $eventDispatcher;
    }