diff --git a/Bootstraps/Symfony.php b/Bootstraps/Symfony.php index cf83321..748e696 100644 --- a/Bootstraps/Symfony.php +++ b/Bootstraps/Symfony.php @@ -150,7 +150,7 @@ public function postHandle($app) //Symfony\Bundle\TwigBundle\Loader\FilesystemLoader //->Twig_Loader_Filesystem - if ($container->has('twig.loader')) { + if ($this->debug && $container->has('twig.loader')) { $twigLoader = $container->get('twig.loader'); Utils::bindAndCall(function () use ($twigLoader) { foreach ($twigLoader->cache as $path) {