0

我正在按照教程创建基本 CMS但在配置 CMF RoutingBundle 后,如启用动态路由器中所示,当我尝试加载夹具数据时出现以下错误

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

这是我的 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   
4

1 回答 1

2

你似乎得到了一个版本混淆。您需要 phpcr-odm 和 phpcr-bundle 的 1.1.* 系列以及 routing-bundle 1.2.* 或 phpcr 在 1.0.* 和路由在 1.1.*

您是否做过任何作曲家技巧或依赖项是否允许这种不兼容的组合?

于 2014-04-04T08:13:46.403 回答