Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 5f4e199

Browse files
committed
explicitly enable cmf_routing for phpcr
1 parent 35251db commit 5f4e199

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/phpcr/doctrine-mapping"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
33

4-
<document
5-
name="Symfony\Cmf\Bundle\RoutingAutoBundle\Document\AutoRoute"
6-
referenceable="true"/>
4+
<document name="Symfony\Cmf\Bundle\RoutingAutoBundle\Document\AutoRoute" referenceable="true"/>
75

86
</doctrine-mapping>
97

Tests/Resources/app/config/routingautoroute.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
cmf_routing:
2+
chain:
3+
routers_by_id:
4+
cmf_routing.dynamic_router: 20
5+
router.default: 100
6+
dynamic:
7+
enabled: true
8+
controllers_by_type:
9+
demo_alias: test.controller:aliasAction
10+
controllers_by_class:
11+
Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute: cmf_routing.redirect_controller:redirectAction
12+
templates_by_class:
13+
Symfony\Cmf\Component\Testing\Document\Content: TestBundle:Content:index.html.twig
14+
persistence:
15+
phpcr:
16+
enabled: true
17+
route_basepath: /test/routing
18+
119
cmf_routing_auto:
220

321
auto_route_mapping:

0 commit comments

Comments
 (0)