Symfony FOS user bundle initiation Symfony FOS user bundle initiation php php

Symfony FOS user bundle initiation


in your config.yml add from_email at path "fos_user":

# ...fos_user:    db_driver: orm # other valid values are 'mongodb' and 'couchdb'    firewall_name: main    user_class: AppBundle\Entity\Admin    # ...    from_email:        address: you@example.com        sender_name: You# ...

More info : Step 5: Configure the FOSUserBundle


In your config.yml add from_email at path "fos_user":

fos_user:  db_driver:      orm # can be orm or odm  firewall_name:  main  user_class:     Sonata\UserBundle\Entity\BaseUser  from_email:    address: "%mailer_host%"    sender_name: "%mailer_user%"

and you get those values from parameters.yml file

# This file is auto-generated during the composer installparameters:    mailer_host: 127.0.0.1    mailer_user: "mailer_user"