我正在按照教程创建基本 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