mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
deprecated, new syntax service definition (export_manager)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user