File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,10 @@ public function prepend(ContainerBuilder $container)
121
121
);
122
122
break ;
123
123
case 'cmf_routing ' :
124
+ $ routePaths = array ($ persistenceConfig ['basepath ' ].'/routes ' );
125
+ if (isset ($ extensions ['cmf_simple_cms ' ])) {
126
+ $ routePaths [] = $ persistenceConfig ['basepath ' ].'/simple ' ;
127
+ }
124
128
$ prependConfig = array (
125
129
'dynamic ' => array (
126
130
'enabled ' => true ,
@@ -129,7 +133,7 @@ public function prepend(ContainerBuilder $container)
129
133
'enabled ' => $ persistenceConfig ['enabled ' ],
130
134
'use_sonata_admin ' => $ persistenceConfig ['use_sonata_admin ' ],
131
135
'content_basepath ' => $ persistenceConfig ['basepath ' ].'/content ' ,
132
- 'route_basepath ' => $ persistenceConfig [ ' basepath ' ]. ' /routes ' ,
136
+ 'route_basepaths ' => $ routePaths ,
133
137
'manager_name ' => $ persistenceConfig ['manager_name ' ],
134
138
)
135
139
)
You can’t perform that action at this time.
0 commit comments