Skip to content

Commit 6ac0de8

Browse files
committed
[TwigBundle] Remove template.xml services when templating is disabled
1 parent 3c2b1ff commit 6ac0de8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public function process(ContainerBuilder $container)
9696
$twigLoader->clearTag('twig.loader');
9797
} else {
9898
$container->setAlias('twig.loader.filesystem', new Alias('twig.loader.native_filesystem', false));
99+
$container->removeDefinition('templating.engine.twig');
99100
}
100101

101102
if ($container->has('assets.packages')) {

0 commit comments

Comments
 (0)