[英]The child node “db_driver” at path “fos_user” must be configured
Trying to implement user management with the Sonata User bundle:尝试使用 Sonata 用户包实现用户管理:
https://sonata-project.org/bundles/user/master/doc/reference/installation.html https://sonata-project.org/bundles/user/master/doc/reference/installation.html
I'm under Symfony 4 and I already have installed the SonataAdminBundle我在 Symfony 4 下,我已经安装了 SonataAdminBundle
But I have an error when I try to update my composer.但是当我尝试更新我的作曲家时出现错误。
!! In ArrayNode.php line 224:
!!
!! The child node "db_driver" at path "fos_user" must be configured.
I have the feeling this is related to Fos User Bundle but I'm not sure at all...我觉得这与 Fos User Bundle 有关,但我完全不确定......
Please tell me which peace of code I can provide to help you with that cause I really don't know at this point.请告诉我我可以提供哪种代码来帮助你解决这个问题,因为我现在真的不知道。
Following this link: https://symfony.com/doc/master/bundles/SonataAdminBundle/index.html按照这个链接: https://symfony.com/doc/master/bundles/SonataAdminBundle/index.html
I have been able to implement all the Getting started part and I was trying to implement the advanced option 5 Security to add user management ( https://symfony.com/doc/master/bundles/SonataAdminBundle/reference/security.html )我已经能够实现所有入门部分,并且我正在尝试实现高级选项 5 安全性以添加用户管理( https://symfony.com/doc/master/bundles/SonataAdminBundle/reference/security.html )
Thanks谢谢
Ok, so in fact the issue was not related to FOSUser at all...the composer update was putting the wrong message (the good one, but only because the cache clear wasn't working).好的,所以事实上这个问题根本与 FOSUser 无关......作曲家更新发出了错误的消息(好消息,但只是因为缓存清除不起作用)。
I fixed it by going to the php.ini and setting the memory limit to 256M instead, so as the cache clear worked so as the composer update worked.我通过转到 php.ini 并将 memory 限制设置为 256M 来修复它,以便缓存清除工作,以便作曲家更新工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.