Skip to content

Commit

Permalink
Manage legacy aliases if exist
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh authored Feb 7, 2018
1 parent ede571a commit 83936b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DependencyInjection/Compiler/MountLoadersPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 83936b3

Please sign in to comment.