public function __construct(\Twig_Environment $twig, $debug, Session $session, Request $request, SecurityContext $sc)
 {
     parent::__construct($twig, $debug);
     $this->session = $session;
     $this->request = $request;
     $this->securityContext = $sc;
 }
示例#2
0
 public function __construct(\Twig_Environment $twig, $debug, ParameterResolverInterface $parameterResolver, ContentMapperInterface $contentMapper, RequestAnalyzerInterface $requestAnalyzer = null)
 {
     parent::__construct($twig, $debug);
     $this->requestAnalyzer = $requestAnalyzer;
     $this->contentMapper = $contentMapper;
     $this->parameterResolver = $parameterResolver;
 }
示例#3
0
 /**
  * Constructor
  *
  * @param Twig_Environment $twig            Template engine
  * @param bool             $debug           Show error (false) or exception (true) pages by default
  * @param TemplateLocator  $templateLocator Where to search for templates
  * @param string           $defaultTemplate Default template
  * @param string[]         $templateByCode  Template by status code
  * @param integer|null     $fallbackCode    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;
 }
 /**
  * @param \Twig_Environment       $twig
  * @param bool                    $debug
  * @param RequestMatcherInterface $requestMatcher The exclusion matcher to decider whether a route should be handled
  *                                                by this error handling. It uses the defined exclusion_rules in the
  *                                                error configuration.
  * @param array                   $templates  Containing the configured templates to use in custom error cases.
  */
 public function __construct(\Twig_Environment $twig, $debug, RequestMatcherInterface $requestMatcher, $templates)
 {
     $this->templates = $templates;
     $this->exclusionRequestMatcher = $requestMatcher;
     parent::__construct($twig, $debug);
 }
 public function __construct(\Twig_Environment $twig, $debug, $exceptionTemplate)
 {
     $this->exceptionTemplate = $exceptionTemplate;
     parent::__construct($twig, $debug);
 }
 public function __construct(\Twig_Environment $twig, $debug)
 {
     parent::__construct($twig, $debug);
 }
 public function __construct(LineRepository $lineRepo, \Twig_Environment $twig, $debug)
 {
     $this->lineRepo = $lineRepo;
     parent::__construct($twig, $debug);
 }