浏览代码

merged branch jonathaningram/patch-2 (PR #2855)

Commits
-------

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

Discussion
----------

[TwigBundle] Ensure base Filesystem loader paths are initialised

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Fixes the following tickets: #2817

Originated from #2817.
Fabien Potencier 13 年之前
父节点
当前提交
f1ccc5278b
共有 1 个文件被更改,包括 2 次插入0 次删除
  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();