예제 #1
0
 public function __construct(array $defaultThemes = array(), \Twig_Environment $environment = null)
 {
     if (null === $environment) {
         @trigger_error(sprintf('Not passing a Twig Environment as the second argument for "%s" constructor is deprecated since version 3.2 and won\'t be possible in 4.0.', static::class), E_USER_DEPRECATED);
     }
     parent::__construct($defaultThemes);
     $this->environment = $environment;
 }
 public function __construct(EngineInterface $engine, array $defaultThemes = array())
 {
     parent::__construct($defaultThemes);
     $this->engine = $engine;
 }