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
does not accept MailerInterface type hinting on Guard Authenticator #2785
Comments
BernardA, did you ever figure this out? I'm experiencing the exact same problem, getting the exact same error, but only for MailerInterface. |
Sorry, but I'm afraid not, and as you can see the so called 'friends of symfony' seem to be busy somewhere else. |
I don’t have the code near now, but it seems that there is no alias for Btw. Friends of Symfony are never busy. |
Tomsgu, that makes sense and I'm pretty confident that path leads to success. I just ran into a similar situation with a different service. |
Under some circumstances a |
Symfony FOSUserBundle versions:
2.1.1 on Symfony 4.0.4
Description of the problem including expected versus actual behavior:
On Guard Authenticator, attempting to include FOS's services for, among other things, re-send e-mail confirmation in case user attempts to login but has still not been enabled on db.
It does accept UserManagerInterface and TokenGeneratorInterface, but for MailerInterface it throws the following error:
The mentioned mailer services ( default, twig_swift, noop ) do not show on the list of available services, if one tries to go that route.
Not sure what is particular about the MailerInterface as compared to the other 2 FOS's interfaces on that script.
Note that the sending of email on the 'regular' ON REGISTRATION SUCCESS event through FOSUserBundle works fine.
Here is the authenticator:
`
namespace App\Security;
`
The text was updated successfully, but these errors were encountered: