FOSUserBundle icon indicating copy to clipboard operation
FOSUserBundle copied to clipboard

Provide autowiring for CanonicalizerInterface

Open soullivaneuh opened this issue 7 years ago • 1 comments

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?                                                                                                                                                                                 

soullivaneuh avatar Mar 06 '18 17:03 soullivaneuh

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 ?

stof avatar Mar 06 '18 17:03 stof