Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5cf4b63

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

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/ContainerLintCommand.php
+2-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.