From 83936b3140bd01d20ba772025c20779f9679b456 Mon Sep 17 00:00:00 2001 From: Sullivan SENECHAL Date: Wed, 7 Feb 2018 17:37:48 +0100 Subject: [PATCH] Manage legacy aliases if exist --- DependencyInjection/Compiler/MountLoadersPass.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DependencyInjection/Compiler/MountLoadersPass.php b/DependencyInjection/Compiler/MountLoadersPass.php index 63a63eb2..2c57075c 100644 --- a/DependencyInjection/Compiler/MountLoadersPass.php +++ b/DependencyInjection/Compiler/MountLoadersPass.php @@ -44,6 +44,9 @@ public function process(ContainerBuilder $container) $container->setDefinition($id = 'jms_translation.loader.wrapped_symfony_loader.'.($i++), $def); $loaders[$attr[0]['alias']] = new Reference($id); + if (isset($attr[0]['legacy_alias'])) { + $loaders[$attr[0]['legacy_alias']] = new Reference($id); + } } foreach ($container->findTaggedServiceIds('jms_translation.loader') as $id => $attr) {