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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy