symfony-cmf/symfony-cmf — Issue #133: Disabling doctrine router triggers error in MenuBundle
Author: krizon
Created: 2012-01-25 05:58:08+00:00
State: open

When disabeling the doctrine router in the config:

symfony_cmf_chain_routing:
chain:
routers_by_id:
router.default: 100
doctrine:
enabled: false

I get the following error:

ServiceNotFoundException: The service "phpcr.menu.factory" has a dependency on a non-existent service "symfony_cmf_chain_routing.doctrine_router".

Because phpcr.menu.factory depends on a service registred in ChainRoutingBundle/Resources/config/cmf_routing.xml wich won't get included when doctrine router is disabled.