8000 [FrameworkBundle] resolve service locators in `debug:*` commands · symfony/symfony@820da66 · GitHub
[go: up one dir, main page]

Skip to content

Commit 820da66

Browse files
[FrameworkBundle] resolve service locators in debug:* commands
1 parent 7a13ea3 commit 820da66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Symfony\Component\Console\Input\InputOption;
2121
use Symfony\Component\Console\Output\OutputInterface;
2222
use Symfony\Component\Console\Style\SymfonyStyle;
23+
use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
2324
use Symfony\Component\DependencyInjection\ContainerBuilder;
2425
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
2526
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
@@ -198,6 +199,8 @@ protected function getContainerBuilder()
198199
$container->compile();
199200
} else {
200201
(new XmlFileLoader($container = new ContainerBuilder(), new FileLocator()))->load($kernel->getContainer()->getParameter('debug.container.dump'));
202+
$locatorPass = new ServiceLocatorTagPass();
203+
$locatorPass->process($container);
201204
}
202205

203206
return $this->containerBuilder = $container;

0 commit comments

Comments
 (0)
0