Skip to content

Commit dc38af3

Browse files
committed
[TwigBundle] made Twig cache independent of the project root directory
1 parent 728034c commit dc38af3

File tree

1 file changed

+2
-1
lines changed
  • src/Symfony/Bundle/TwigBundle/Resources/config

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/TwigBundle/Resources/config/twig.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
</service>
4646

4747
<service id="twig.loader.native_filesystem" class="Twig_Loader_Filesystem" public="false">
48-
<argument type="collection" />
48+
<argument type="collection" /> <!-- paths -->
49+
<argument>%kernel.root_dir%</argument>
4950
</service>
5051

5152
<service id="twig.loader.filesystem" class="Symfony\Bundle\TwigBundle\Loader\FilesystemLoader" public="false">

0 commit comments

Comments
 (0)