SymfonyCMF RoutingBundle Doctrine PHPCR configuration error

夙愿已清 提交于 2019-12-10 12:17:40

问题


i'm following the tutorial Creating a Basic CMS but after configurate the CMF RoutingBundle like it's shown in Enable the Dynamic Router i got the following error when i try to load the fixture data

PHP Catchable fatal error:  Argument 2 passed to Doctrine\Bundle\PHPCRBundle\Initializer\GenericInitializer::__construct() must be of the type array, none given

here is my config.yml

cmf_routing:
    chain:
        routers_by_id:
            cmf_routing.dynamic_router: 20
            router.default: 100
    dynamic:
        enabled: true
        persistence:
            phpcr:                
                route_basepath: /cms/routes   

回答1:


you seem to have gotten a version mixup. you need either the 1.1.* family of phpcr-odm and phpcr-bundle with the routing-bundle 1.2.* or phpcr at 1.0.* and routing at 1.1.*

did you do any composer tricks or are the dependencies allowing this incompatible combination?



来源:https://stackoverflow.com/questions/22853037/symfonycmf-routingbundle-doctrine-phpcr-configuration-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!