Skip to content

Commit

Permalink
Merge pull request #876 from ruudk/fix-twig-bundle-issue
Browse files Browse the repository at this point in the history
Run `TwigExtensionPass` with higher priority
  • Loading branch information
goetas authored Oct 20, 2021
2 parents d5021bc + c8eeba2 commit 6fdc277
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion JMSSerializerBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ function (ContainerBuilder $container, $def) {
}
));

// Should run before Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\TwigEnvironmentPass
$builder->addCompilerPass(new TwigExtensionPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 10);

$builder->addCompilerPass(new FormErrorHandlerTranslationDomainPass());
$builder->addCompilerPass(new TwigExtensionPass());
$builder->addCompilerPass(new ExpressionFunctionProviderPass());
$builder->addCompilerPass(new DoctrinePass());

Expand Down

0 comments on commit 6fdc277

Please sign in to comment.