Selaa lähdekoodia

Fixes #2817: ensure that the base loader is correctly initialised

Jonathan Ingram 13 vuotta sitten
vanhempi
commit
7827f72cf4
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php

+ 2 - 0
src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php

@@ -33,6 +33,8 @@ class FilesystemLoader extends \Twig_Loader_Filesystem
      */
     public function __construct(FileLocatorInterface $locator, TemplateNameParserInterface $parser)
     {
+        parent::__construct(array());
+
         $this->locator = $locator;
         $this->parser = $parser;
         $this->cache = array();