Skip to content

Commit e1145a7

Browse files
committed
add tags before processing them
1 parent c0b2ade commit e1145a7

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