/**
  * @param array $vars
  * @param Request|null $request
  * @param array $locales
  * @throws \Exception
  */
 public function __construct(array $vars, Request $request = null, array $locales)
 {
     $this->request = $request;
     $this->locales = $locales;
     $this->vars = $vars['params'];
     parent::__construct();
 }
 /**
  * @param \Twig_Environment $templating
  * @param TwigJsTokenParser $twigJsTokenParser
  * @param TwigJsResultTokenParser $twigJsResultTokenParser
  * @throws \Exception
  */
 public function __construct(\Twig_Environment $templating, TwigJsTokenParser $twigJsTokenParser, TwigJsResultTokenParser $twigJsResultTokenParser)
 {
     $this->templating = $templating;
     $this->twigJsTokenParser = $twigJsTokenParser;
     $this->twigJsResultTokenParser = $twigJsResultTokenParser;
     parent::__construct();
 }