Elcodi\Store\CoreBundle\Controller\ExceptionController::__construct PHP Method

__construct() public method

Constructor
public __construct ( Twig_Environment $twig, boolean $debug, TemplateLocator $templateLocator, string $defaultTemplate, array $templateByCode, integer | null $fallbackCode = null )
$twig Twig_Environment Template engine
$debug boolean Show error (false) or exception (true) pages by default
$templateLocator Elcodi\Store\CoreBundle\Services\TemplateLocator Where to search for templates
$defaultTemplate string Default template
$templateByCode array Template by status code
$fallbackCode integer | null Status code for fallback exceptions
    public function __construct(Twig_Environment $twig, $debug, TemplateLocator $templateLocator, $defaultTemplate, array $templateByCode, $fallbackCode = null)
    {
        parent::__construct($twig, $debug);
        $this->templateLocator = $templateLocator;
        $this->defaultTemplate = $defaultTemplate;
        $this->templateByCode = $templateByCode;
        $this->fallbackCode = $fallbackCode;
    }