Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 511905d

Browse filesBrowse 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 files --> | 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
Copy full SHA for 511905d

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php
+1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.