Skip to content

Conversation

@jvasseur
Copy link

@jvasseur jvasseur commented Aug 3, 2017

Add aliases to allow autowiring user and groups managers with the new "id = class" convention.

@shakaran
Copy link

@XWB any update with this for merge it? It seems good to me

@XWB XWB merged commit 715e6f1 into FriendsOfSymfony:master Oct 24, 2017
@XWB
Copy link
Member

XWB commented Oct 24, 2017

Thanks :)

@jvasseur jvasseur deleted the autowiring-aliases branch October 24, 2017 09:17
@roberto910907
Copy link

@jvasseur @XWB What do you think about fos_user.util.password_updater and fos_user.util.canonical_fields_updater.

Autowiring services based on the types they implement is deprecated since Symfony 3.3 and won't be supported in version 4.0. You should rename (or alias) the "fos_user.util.password_updater" service to "FOS\UserBundle\Util\PasswordUpdaterInterface" instead.

Autowiring services based on the types they implement is deprecated since Symfony 3.3 and won't be supported in version 4.0. You should rename (or alias) the "fos_user.util.canonical_fields_updater" service to "FOS\UserBundle\Util\CanonicalFieldsUpdater" instead.

@iCodr8
Copy link

iCodr8 commented Jan 30, 2018

The alias for the TokenGenerator is missing:

$container->setAlias('FOS\UserBundle\Util\TokenGeneratorInterface', new Alias('fos_user.util.token_generator', false));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants