File tree 1 file changed +2
-1
lines changed
src/Symfony/Bundle/FrameworkBundle/Command
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 21
21
use Symfony \Component \Console \Style \SymfonyStyle ;
22
22
use Symfony \Component \DependencyInjection \Compiler \CheckTypeDeclarationsPass ;
23
23
use Symfony \Component \DependencyInjection \Compiler \PassConfig ;
24
+ use Symfony \Component \DependencyInjection \Compiler \ResolveFactoryClassPass ;
24
25
use Symfony \Component \DependencyInjection \Container ;
25
26
use Symfony \Component \DependencyInjection \ContainerBuilder ;
26
27
use Symfony \Component \DependencyInjection \Exception \InvalidArgumentException ;
@@ -99,7 +100,7 @@ private function getContainerBuilder(): ContainerBuilder
99
100
$ refl ->setValue ($ parameterBag , true );
100
101
101
102
$ container ->getCompilerPassConfig ()->setBeforeOptimizationPasses ([]);
102
- $ container ->getCompilerPassConfig ()->setOptimizationPasses ([]);
103
+ $ container ->getCompilerPassConfig ()->setOptimizationPasses ([new ResolveFactoryClassPass () ]);
103
104
$ container ->getCompilerPassConfig ()->setBeforeRemovingPasses ([]);
104
105
}
105
106
You can’t perform that action at this time.
0 commit comments