Skip to content

Commit 0c2ab8a

Browse files
committed
Merge pull request #147 from symfony-cmf/prepend_routingauto
Prepend routing auto route_basepath
2 parents 8e64070 + 34ea53d commit 0c2ab8a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

DependencyInjection/CmfCoreExtension.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ public function prepend(ContainerBuilder $container)
140140
$prependConfig['dynamic']['generic_controller'] = 'cmf_content.controller:indexAction';
141141
}
142142
break;
143+
case 'cmf_routing_auto':
144+
$prependConfig = array(
145+
'persistence' => array(
146+
'phpcr' => array(
147+
'route_basepath' => $persistenceConfig['basepath'].'/routes',
148+
),
149+
),
150+
);
151+
break;
143152
case 'cmf_search':
144153
$prependConfig = array(
145154
'persistence' => array(

0 commit comments

Comments
 (0)