I cannot install the FOSUserBundle
.
I configured config/config.yml
as follows:
fos_user:
db_driver: orm # other valid values are 'mongodb' and 'couchdb'
firewall_name: main
user_class: App\Entity\User
from_email:
address: "%mailer_user%"
sender_name: "%mailer_user%"
But when I run this command:
composer require friendsofsymfony/user-bundle "~2.0"
I get the error:
The child node "db_driver" at path "fos_user" must be configured
Any hints why this is happening?
All of this config information should not be stored in config/config.yml
in Symfony 4 (in Symfony 3, this would be correct). Instead, you have to create a config file config/packages/fos_user.yaml
and save this information there. You then can remove config/config.yml
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.