Question

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   
Was it helpful?

Solution

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?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top