The service “fos_user.mailer” has a dependency on a non-existent service “templating”

前端 未结 3 1838
逝去的感伤
逝去的感伤 2020-12-28 12:53

So, the above error has suddenly started happening, after I\'ve been using FOSUserBundle for several Symfony projects.

I\'ve tried including the templating service (

3条回答
  •  再見小時候
    2020-12-28 13:31

    For my case, it's work after changing in the config.yml like below:

    # FOSUser Configuration
    fos_user:
        db_driver: orm # other valid values are 'mongodb' and 'couchdb'
        firewall_name: main
        user_class: AppBundle\Entity\User
        service:                               # this line
            mailer: fos_user.mailer.twig_swift # this line (from the comment above)
        from_email:
            address: "test@test.com" # change this 
            sender_name: "Test App"  # and this
    

提交回复
热议问题