简体   繁体   English

Symfony CMF:“ cmf_routing.dynamic.persistence.phpcr”下的无法识别的选项“ use_sonata_admin”

[英]Symfony CMF: Unrecognized option “use_sonata_admin” under “cmf_routing.dynamic.persistence.phpcr”

I try to install Symfony CMF with SonataDoctrinePHPCRAdminBundle() and CmfTreeBrowserBundle() . 我尝试使用SonataDoctrinePHPCRAdminBundle()CmfTreeBrowserBundle()安装Symfony CMF

According to docs there's an option in app/config.yml to prevent administrative routes be view-able in admin interface: 根据文档, app/config.yml有一个选项可以防止管理路由在管理界面中app/config.yml

# app/config/config.yml
cmf_routing:
    # ...
    dynamic:
        # ...
        persistence:
            phpcr:
                # ...
                use_sonata_admin: false

But I receive an error both in the console and on the site: 但是我在控制台和站点上都收到一个错误:

"Unrecognized option "use_sonata_admin" under 
"cmf_routing.dynamic.persistence.phpcr"

What could it be? 会是什么呢?

we are in the process of moving to cmf version 2. the tutorial is currently outdated. 我们正在升级到cmf版本2。该教程目前已过时。 sonata admin is now all configured at the new admin bundle, not on cmf_routing anymore. 现在已经在新的管理员捆绑包中配置了sonata admin,而不再在cmf_routing上配置。 if you want something that works as documented, please use the 1.3 release and the 1.3 documentation. 如果您希望某些功能如文档所述,请使用1.3版本和1.3文档。 if you are trying out new things, see github.com/symfony-cmf/symfony-cmf-docs/milestone/4 for what documentation can be expect to work or not yet. 如果您正在尝试新事物,请参阅github.com/symfony-cmf/symfony-cmf-docs/milestone/4,以了解哪些文档可能有效。 any help in updating the doc is appreciated of course ;-) 感谢您对文档的任何帮助;-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM