Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide autowiring for CanonicalizerInterface #2749

Open
soullivaneuh opened this issue Mar 6, 2018 · 1 comment
Open

Provide autowiring for CanonicalizerInterface #2749

soullivaneuh opened this issue Mar 6, 2018 · 1 comment

Comments

@soullivaneuh
Copy link

Example:

  [Symfony\Component\DependencyInjection\Exception\RuntimeException]                                                                                                                                                                                                           
  Cannot autowire service "AppBundle\Manager\EmailManager": argument "$canonicalizer" of method "__construct()" references interface "FOS\UserBundle\Util\CanonicalizerInterface" but no such service exists. You should maybe alias this interface to the existing "fos_user  
  .util.canonicalizer.default" service. Did you create a class that implements this interface?                                                                                                                                                                                 
@stof
Copy link
Member

stof commented Mar 6, 2018

The thing is, we allow configuring different normalizers for the username and the email (even though they use the same default implementation). Which one should we autowire, the email or the username one ?

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

No branches or pull requests

2 participants