简体   繁体   中英

sonata user-bundle symfony 3.4 problem installation with Flex

I have a problem with the installation of sonata-project/user-bundle on a Symfony 3.4 project using Symfony Flex .

After the installation, during the execution of the script cache:clear, this one returned KO and the message is:

The child node "db_driver" at path "fos_user" must be configured.

Does someone have an idea to fix this problem?

Thanks for your help,

Because Sonata User is built on top of FOS User you have to also configure the FOS bundle.

https://symfony.com/doc/current/bundles/FOSUserBundle/index.html#step-5-configure-the-fosuserbundle

Step 5 here will fix your problem.

fos_user:
    db_driver: orm # other valid values are 'mongodb' and 'couchdb'
    firewall_name: main
    user_class: AppBundle\Entity\User
    from_email:
        address: "%mailer_user%"
        sender_name: "%mailer_user%"

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM