File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,24 @@ public function prepend(ContainerBuilder $container)
203
203
$ prependConfig = array ();
204
204
205
205
switch ($ name ) {
206
+ case 'cmf_routing ' :
207
+ $ prependConfig = array (
208
+ 'dynamic ' => array (
209
+ 'enabled ' => true ,
210
+ 'persistence ' => array (
211
+ 'orm ' => array (
212
+ 'enabled ' => $ persistenceConfig ['enabled ' ],
213
+ 'manager_name ' => $ persistenceConfig ['manager_name ' ],
214
+ )
215
+ )
216
+ )
217
+ );
218
+
219
+ if (isset ($ bundles ['CmfContentBundle ' ])) {
220
+ $ prependConfig ['dynamic ' ]['generic_controller ' ] = 'cmf_content.controller:indexAction ' ;
221
+ }
222
+ break ;
223
+
206
224
case 'cmf_seo ' :
207
225
$ prependConfig = array (
208
226
'persistence ' => array (
@@ -212,6 +230,7 @@ public function prepend(ContainerBuilder $container)
212
230
),
213
231
'sonata_admin_extension ' => $ persistenceConfig ['use_sonata_admin ' ],
214
232
);
233
+ break ;
215
234
}
216
235
217
236
if ($ prependConfig ) {
Original file line number Diff line number Diff line change @@ -48,12 +48,13 @@ public function getConfigTreeBuilder()
48
48
->addDefaultsIfNotSet ()
49
49
->canBeEnabled ()
50
50
->children ()
51
+ ->scalarNode ('manager_name ' )->defaultNull ()->end ()
51
52
->enumNode ('use_sonata_admin ' )
52
53
->values (array (true , false , 'auto ' ))
53
54
->defaultValue ('auto ' )
54
55
->end ()
55
56
->end ()
56
- ->end ()
57
+ ->end () // orm
57
58
->end ()
58
59
->end ()
59
60
->arrayNode ('multilang ' )
You can’t perform that action at this time.
0 commit comments