简体   繁体   English

必须配置路径“安全性”下的子节点“提供者” SonataAdmin FosUser

[英]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.

相关问题 FOSOAuthServerBundle-必须配置路径“ security”处的子节点“ providers” - FOSOAuthServerBundle - The child node “providers” at path “security” must be configured FOSUser Bundle必须配置路径“fos_user”中的子节点“db_driver” - FOSUser Bundle The child node “db_driver” at path “fos_user” must be configured Symfony FOSUser Bundle 错误必须配置路径“fos_user”处的子节点“db_driver” - Symfony FOSUser Bundle error The child node “db_driver” at path “fos_user” must be configured InvalidConfigurationException:必须配置路径“ security.firewalls.main.remember_me”处的子节点“ key” - InvalidConfigurationException: The child node “key” at path “security.firewalls.main.remember_me” must be configured 必须配置路径“security.firewalls.main.remember_me”中的子节点“secret” - The child node “secret” at path “security.firewalls.main.remember_me” must be configured 必须配置路径“enqueue_elastica”处的子节点“transport” - The child node "transport" at path "enqueue_elastica" must be configured 安装QCMBundle - 必须配置子节点“驱动程序” - Installing QCMBundle - The child node “driver” must be configured 必须配置路径“fos_user”的子节点“db_driver” - The child node “db_driver” at path “fos_user” must be configured Symfony 4-必须配置路径“ beelab_tag”上的子节点“ tag_class” - Symfony 4 - The child node “tag_class” at path “beelab_tag” must be configured 停滞的RedKiteCMS安装:“必须配置路径“ fos_user”处的子节点“ db_driver” - Stalled RedKiteCMS install: “The child node ”db_driver“ at path ”fos_user“ must be configured”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM