[TwigBundle] Remove template.xml services when templating is disabled

This commit is contained in:
Maxime Steinhausser 2017-06-15 13:47:35 +02:00
parent 3c2b1ff929
commit 6ac0de8c2f
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ class ExtensionPass implements CompilerPassInterface
$twigLoader->clearTag('twig.loader');
} else {
$container->setAlias('twig.loader.filesystem', new Alias('twig.loader.native_filesystem', false));
$container->removeDefinition('templating.engine.twig');
}
if ($container->has('assets.packages')) {