File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 99
1010namespace Symfony \WebpackEncoreBundle ;
1111
12+ use Symfony \Component \DependencyInjection \Compiler \PassConfig ;
1213use Symfony \Component \DependencyInjection \ContainerBuilder ;
1314use Symfony \Component \HttpKernel \Bundle \Bundle ;
1415use Symfony \WebpackEncoreBundle \DependencyInjection \Compiler \RemoveStimulusServicesPass ;
@@ -17,6 +18,7 @@ final class WebpackEncoreBundle extends Bundle
1718{
1819 public function build (ContainerBuilder $ container )
1920 {
20- $ container ->addCompilerPass (new RemoveStimulusServicesPass ());
21+ // run before TwigEnvironmentPass to remove the twig extension before it's used
22+ $ container ->addCompilerPass (new RemoveStimulusServicesPass (), PassConfig::TYPE_BEFORE_OPTIMIZATION , 10 );
2123 }
2224}
You can’t perform that action at this time.
0 commit comments