8000 [FrameworkBundle] Run the `ResolveFactoryClassPass` when `lint:contai… · symfony/symfony@5cf4b63 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5cf4b63

Browse files
committed
[FrameworkBundle] Run the ResolveFactoryClassPass when lint:container builds the container from a dump
1 parent e15ccda commit 5cf4b63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/ContainerLintCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Symfony\Component\Console\Style\SymfonyStyle;
2222
use Symfony\Component\DependencyInjection\Compiler\CheckTypeDeclarationsPass;
2323
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
24+
use Symfony\Component\DependencyInjection\Compiler\ResolveFactoryClassPass;
2425
use Symfony\Component\DependencyInjection\Container;
2526
use Symfony\Component\DependencyInjection\ContainerBuilder;
2627
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
@@ -99,7 +100,7 @@ private function getContainerBuilder(): ContainerBuilder
99100
$refl->setValue($parameterBag, true);
100101

101102
$container->getCompilerPassConfig()->setBeforeOptimizationPasses([]);
102-
$container->getCompilerPassConfig()->setOptimizationPasses([]);
103+
$container->getCompilerPassConfig()->setOptimizationPasses([new ResolveFactoryClassPass()]);
103104
$container->getCompilerPassConfig()->setBeforeRemovingPasses([]);
104105
}
105106

0 commit comments

Comments
 (0)
0