Skip to content

Commit 70bea73

Browse files
committed
Merge pull request #134 from symfony-cmf/routing-cleanup
adjust to routing cleanup
2 parents fadc0d1 + 2bd6047 commit 70bea73

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

DependencyInjection/CmfCoreExtension.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ public function prepend(ContainerBuilder $container)
121121
);
122122
break;
123123
case 'cmf_routing':
124+
$routePaths = array($persistenceConfig['basepath'].'/routes');
125+
if (isset($extensions['cmf_simple_cms'])) {
126+
$routePaths[] = $persistenceConfig['basepath'].'/simple';
127+
}
124128
$prependConfig = array(
125129
'dynamic' => array(
126130
'enabled' => true,
@@ -129,7 +133,7 @@ public function prepend(ContainerBuilder $container)
129133
'enabled' => $persistenceConfig['enabled'],
130134
'use_sonata_admin' => $persistenceConfig['use_sonata_admin'],
131135
'content_basepath' => $persistenceConfig['basepath'].'/content',
132-
'route_basepath' => $persistenceConfig['basepath'].'/routes',
136+
'route_basepaths' => $routePaths,
133137
'manager_name' => $persistenceConfig['manager_name'],
134138
)
135139
)

0 commit comments

Comments
 (0)