Skip to content

Commit bf877b8

Browse files
committed
bug #34888 [TwigBundle] add tags before processing them (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [TwigBundle] add tags before processing them | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #34815 | License | MIT | Doc PR | Commits ------- e1145a7 add tags before processing them
2 parents c0b2ade + e1145a7 commit bf877b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/TwigBundle/TwigBundle.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public function build(ContainerBuilder $container)
3232
{
3333
parent::build($container);
3434

35-
$container->addCompilerPass(new ExtensionPass());
35+
// ExtensionPass must be run before the FragmentRendererPass as it adds tags that are processed later
36+
$container->addCompilerPass(new ExtensionPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 10);
3637
$container->addCompilerPass(new TwigEnvironmentPass());
3738
$container->addCompilerPass(new TwigLoaderPass());
3839
$container->addCompilerPass(new ExceptionListenerPass());

0 commit comments

Comments
 (0)