Skip to content

Commit

Permalink
fix public alias setter for compatibility with symfony 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
acasademont committed Dec 6, 2017
1 parent b207e99 commit 0600f77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DependencyInjection/Compiler/SetRouterPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class SetRouterPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
{
$container->setAlias('router', 'jms_i18n_routing.router')->setPublic(true);
$container->setAlias('router', 'jms_i18n_routing.router');
$container->getAlias('router')->setPublic(true);

$translatorDef = $container->findDefinition('translator');
if ('%translator.identity.class%' === $translatorDef->getClass()) {
Expand Down

2 comments on commit 0600f77

@XWB
Copy link
Contributor

@XWB XWB commented on 0600f77 Dec 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@acasademont Can you tag a new 2.0.3 release?

@acasademont
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@XWB was already done a couple of days ago!

Please sign in to comment.