FOSUser捆绑必须配置路径为";FOS_USER";的子节点";db_driver";
我正在尝试在安装FOSUser Bundle 2.0后更新信条架构,但我一直收到此错误:
In ArrayNode.php line 238:
The child node "db_driver" at path "fos_user" must be configured.
文件config.yaml已正确配置在位置/config/config.yaml:
framework:
translator: ~
fos_user:
db_driver: orm
firewall_name: main
user_class: EntityUser
from_email:
address: "%mailer_user%"
sender_name: "%mailer_user%"
尝试通过官方教程解决:http://symfony.com/doc/master/bundles/FOSUserBundle/index.html#prerequisites
我尝试先执行步骤5,然后重新运行步骤1。但仍然出现相同的错误。
有什么想法吗?
解决方案
尝试这样缩进:
fos_user:
db_driver: orm
firewall_name: main
user_class: EntityUser
from_email:
address: "%mailer_user%"
sender_name: "%mailer_user%"
因为YML文件需要用所有必要的空格写入和缩进
相关文章