-
Notifications
You must be signed in to change notification settings - Fork 1.6k
The service "fos_user.mailer" has a dependency on a non-existent service "mailer" #2600
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
Comments
Hi there! What version of Symfony and FOSUserBundle are you using? On freshly installed SF3.3 with Flex i had to set: fos_user:
db_driver: orm # other valid values are 'mongodb' and 'couchdb'
firewall_name: main
user_class: App\Entity\User
from_email:
address: '%env(MAILER_USER_ADDRESS)%'
sender_name: '%env(MAILER_USER_NAME)%'
service:
mailer: 'fos_user.mailer.noop'
# mailer: 'fos_user.mailer.twig_swift' # Works as well to quite this error. It didn't however remove the problem. Does your SwiftmailerBundle is properly configured? |
without Swiftmailer bundle we can't use latest version ?? |
Sorry, my fault. https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/composer.json#L35 How about your setup? What version of Symfony do you use? And how about flex? Did you try use 'fos_user.mailer.twig_swift' as in my snippet? Cheers! EDIT:
So maybe |
symfony:2.8.2,after install swiftmailerbundle its working fine. |
So here is our answer :) As far as I know you can write your own mailer and get rid of SwiftmailerBundle: |
@broiniac thanks a lot |
The text was updated successfully, but these errors were encountered: