Skip to content

Commit bb09062

Browse files
[FrameworkBundle] resolve service locators in debug:* commands
1 parent 0d61117 commit bb09062

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)