Contao\CoreBundle\EventListener\PrettyErrorScreenListener::__construct PHP Method

__construct() public method

Constructor.
public __construct ( boolean $prettyErrorScreens, Twig_Environment $twig, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Psr\Log\LoggerInterface $logger = null )
$prettyErrorScreens boolean
$twig Twig_Environment
$framework Contao\CoreBundle\Framework\ContaoFrameworkInterface
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$logger Psr\Log\LoggerInterface
    public function __construct($prettyErrorScreens, \Twig_Environment $twig, ContaoFrameworkInterface $framework, TokenStorageInterface $tokenStorage, LoggerInterface $logger = null)
    {
        $this->prettyErrorScreens = $prettyErrorScreens;
        $this->twig = $twig;
        $this->framework = $framework;
        $this->tokenStorage = $tokenStorage;
        $this->logger = $logger;
    }