8000 bug #23186 [TwigBundle] Move template.xml loading to a compiler pass … · symfony/symfony@511905d · GitHub
[go: up one dir, main page]

Skip to content

Commit 511905d

Browse files
committed
bug #23186 [TwigBundle] Move template.xml loading to a compiler pass (ogizanagi)
This PR was merged into the 2.7 branch. Discussion ---------- [TwigBundle] Move template.xml loading to a compiler pass | Q | A | ------------- | --- | Branch? | 2.7 <!-- see comment below --> | Bug fix? | yes | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md file D840 s --> | Tests pass? | yes | Fixed tickets | #23181 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A (failures unrelated) Commits ------- 6ac0de8 [TwigBundle] Remove template.xml services when templating is disabled
2 parents 3c2b1ff + 6ac0de8 commit 511905d

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)
0