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 9
9
10
10
namespace Symfony \WebpackEncoreBundle ;
11
11
12
+ use Symfony \Component \DependencyInjection \Compiler \PassConfig ;
12
13
use Symfony \Component \DependencyInjection \ContainerBuilder ;
13
14
use Symfony \Component \HttpKernel \Bundle \Bundle ;
14
15
use Symfony \WebpackEncoreBundle \DependencyInjection \Compiler \RemoveStimulusServicesPass ;
@@ -17,6 +18,7 @@ final class WebpackEncoreBundle extends Bundle
17
18
{
18
19
public function build (ContainerBuilder $ container )
19
20
{
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 );
21
23
}
22
24
}
You can’t perform that action at this time.
0 commit comments