From 5f4e1999633a6712762c444e86d281fc47e6172b Mon Sep 17 00:00:00 2001 From: Lukas Kahwe Smith Date: Wed, 31 Jul 2013 16:48:14 +0200 Subject: [PATCH] explicitly enable cmf_routing for phpcr --- Resources/config/doctrine/AutoRoute.phpcr.xml | 4 +--- .../Resources/app/config/routingautoroute.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Resources/config/doctrine/AutoRoute.phpcr.xml b/Resources/config/doctrine/AutoRoute.phpcr.xml index f34dc1e..d86e124 100644 --- a/Resources/config/doctrine/AutoRoute.phpcr.xml +++ b/Resources/config/doctrine/AutoRoute.phpcr.xml @@ -1,9 +1,7 @@ - + diff --git a/Tests/Resources/app/config/routingautoroute.yml b/Tests/Resources/app/config/routingautoroute.yml index c3b4378..be71ec7 100644 --- a/Tests/Resources/app/config/routingautoroute.yml +++ b/Tests/Resources/app/config/routingautoroute.yml @@ -1,3 +1,21 @@ +cmf_routing: + chain: + routers_by_id: + cmf_routing.dynamic_router: 20 + router.default: 100 + dynamic: + enabled: true + controllers_by_type: + demo_alias: test.controller:aliasAction + controllers_by_class: + Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute: cmf_routing.redirect_controller:redirectAction + templates_by_class: + Symfony\Cmf\Component\Testing\Document\Content: TestBundle:Content:index.html.twig + persistence: + phpcr: + enabled: true + route_basepath: /test/routing + cmf_routing_auto: auto_route_mapping: