Skip to content

Commit

Permalink
Merge pull request #479 from Soullivaneuh/patch-1
Browse files Browse the repository at this point in the history
Manage legacy aliases if exist
  • Loading branch information
schmittjoh authored Feb 7, 2018
2 parents ede571a + 83936b3 commit 2d78f61
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 2d78f61

Please sign in to comment.