[英]The child node “providers” at path “security” must be configured SonataAdmin FosUser
I'm struggling to install SonataAdminBundle with FOSuserBundle. 我正在努力用FOSuserBundle安装SonataAdminBundle。
I'm following the manual at https://sonata-project.org/bundles/user/2-2/doc/reference/installation.html but at the last step, to generate the Bundle, I have the error "The child node "providers" at path "security". 我在https://sonata-project.org/bundles/user/2-2/doc/reference/installation.html上遵循手册,但在最后一步,要生成捆绑包,我会看到错误“ The child节点“提供者”位于路径“安全”处。
I've configured nicely the providers part in app/config/config.yml. 我已经在app / config / config.yml中很好地配置了提供者部分。 What did I do wrong ?
我做错了什么 ?
PS : I'm using the 2.8 version of Symfony. PS:我正在使用2.8版本的Symfony。
Thanks ! 谢谢 !
i'll try to help, i had same problem. 我会尽力帮助,我有同样的问题。 it was logical error in app/config/security.yml
这是app / config / security.yml中的逻辑错误
My bad was is add this code in the middle 我的坏处是在中间添加此代码
sonata_admin:
security:
handler: app.security.handler.role
when i add it in the end of file - all works good ! 当我在文件末尾添加它时,一切正常!
The child node "providers" at path "security - meaning that in your security can't find node providers must be smth like this: 子节点“提供者”位于“安全性”路径上,这意味着在您的安全性中找不到节点提供者必须像这样:
security:
...
\t encoders:
...
\t providers:
...
\t firewalls:
...
\t access_control:
...
sonata_admin:
\\t-tab symbol \\ t-tab符号
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.