[英]sonata user-bundle symfony 3.4 problem installation with Flex
我在使用Symfony Flex的Symfony 3.4項目上安裝sonata-project / user-bundle時遇到問題。
安裝后,在執行腳本cache:clear的過程中,該腳本返回了KO,消息為:
The child node "db_driver" at path "fos_user" must be configured.
有人有解決此問題的想法嗎?
謝謝你的幫助,
由於Sonata用戶是基於FOS用戶構建的,因此您還必須配置FOS捆綁軟件。
https://symfony.com/doc/current/bundles/FOSUserBundle/index.html#step-5-configure-the-fosuserbundle
這里的第5步將解決您的問題。
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%"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.