Skip to content

Commit 9a69774

Browse files
acasademontandig
authored andcommitted
Only register twig files when debugging (#145)
1 parent f6d1250 commit 9a69774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bootstraps/Symfony.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function postHandle($app)
150150

151151
//Symfony\Bundle\TwigBundle\Loader\FilesystemLoader
152152
//->Twig_Loader_Filesystem
153-
if ($container->has('twig.loader')) {
153+
if ($this->debug && $container->has('twig.loader')) {
154154
$twigLoader = $container->get('twig.loader');
155155
Utils::bindAndCall(function () use ($twigLoader) {
156156
foreach ($twigLoader->cache as $path) {

0 commit comments

Comments
 (0)