【发布时间】:2014-04-04 03:34:37
【问题描述】:
我正在关注Creating a Basic CMS 教程,但是在配置 CMF RoutingBundle 之后,就像在Enable the Dynamic Router 中显示的那样,当我尝试加载夹具数据时出现以下错误
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
【问题讨论】:
标签: symfony-cmf doctrine-phpcr