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)
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 )
You can’t perform that action at this time.
0 commit comments