deprecated, new syntax service definition (export_manager)

This commit is contained in:
2020-07-15 18:09:53 +02:00
parent 455e1f21c4
commit b03fc3558e
4 changed files with 6 additions and 19 deletions

View File

@@ -41,13 +41,13 @@ class ExportsCompilerPass implements CompilerPassInterface
public function process(ContainerBuilder $container)
{
if (!$container->hasDefinition('chill.main.export_manager')) {
throw new \LogicException('service chill.main.export_manager '
if (!$container->has('Chill\MainBundle\Export\ExportManager')) {
throw new \LogicException('service Chill\MainBundle\Export\ExportManager '
. 'is not defined. It is required by ExportsCompilerPass');
}
$chillManagerDefinition = $container->getDefinition(
'chill.main.export_manager'
$chillManagerDefinition = $container->findDefinition(
'Chill\MainBundle\Export\ExportManager'
);
$this->compileExports($chillManagerDefinition, $container);