Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Fix TwigStringExtensionCompilerPass priority (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbloszyk committed Jul 4, 2020
1 parent 72a3789 commit 5b3e1ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ProductBundle/SonataProductBundle.php
Expand Up @@ -21,6 +21,7 @@
use Sonata\ProductBundle\Form\Type\ApiProductParentType;
use Sonata\ProductBundle\Form\Type\ApiProductType;
use Sonata\ProductBundle\Form\Type\ProductDeliveryStatusType;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

Expand All @@ -29,7 +30,7 @@ class SonataProductBundle extends Bundle
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new AddProductProviderCompilerPass());
$container->addCompilerPass(new TwigStringExtensionCompilerPass());
$container->addCompilerPass(new TwigStringExtensionCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 1);

$this->registerFormMapping();
}
Expand Down

0 comments on commit 5b3e1ee

Please sign in to comment.