我正在按照教程Creating a Basic CMS进行操作,但是在配置了Enable the Dynamic Router中显示的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
答案 0 :(得分:2)
你做过任何作曲家技巧或是否允许这种不兼容的组合?