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)