|
@@ -35,11 +35,15 @@ class Configuration implements ConfigurationInterface
|
|
|
$rootNode = $treeBuilder->root('sonata_admin', 'array');
|
|
|
|
|
|
$rootNode
|
|
|
- ->fixXmlConfig('dashboard_group')
|
|
|
+ ->fixXmlConfig('option')
|
|
|
->fixXmlConfig('admin_service')
|
|
|
+ ->fixXmlConfig('template')
|
|
|
+ ->fixXmlConfig('extension')
|
|
|
->children()
|
|
|
->arrayNode('security')
|
|
|
->addDefaultsIfNotSet()
|
|
|
+ ->fixXmlConfig('admin_permission')
|
|
|
+ ->fixXmlConfig('object_permission')
|
|
|
->children()
|
|
|
->scalarNode('handler')->defaultValue('sonata.admin.security.handler.noop')->end()
|
|
|
->arrayNode('information')
|
|
@@ -74,6 +78,8 @@ class Configuration implements ConfigurationInterface
|
|
|
->end()
|
|
|
->arrayNode('dashboard')
|
|
|
->addDefaultsIfNotSet()
|
|
|
+ ->fixXmlConfig('group')
|
|
|
+ ->fixXmlConfig('block')
|
|
|
->children()
|
|
|
->arrayNode('groups')
|
|
|
->useAttributeAsKey('id')
|
|
@@ -95,6 +101,7 @@ class Configuration implements ConfigurationInterface
|
|
|
->arrayNode('blocks')
|
|
|
->defaultValue(array(array('position' => 'left', 'settings' => array(), 'type' => 'sonata.admin.block.admin_list')))
|
|
|
->prototype('array')
|
|
|
+ ->fixXmlConfig('setting')
|
|
|
->children()
|
|
|
->scalarNode('type')->cannotBeEmpty()->end()
|
|
|
->arrayNode('settings')
|
|
@@ -155,6 +162,10 @@ class Configuration implements ConfigurationInterface
|
|
|
->useAttributeAsKey('id')
|
|
|
->defaultValue(array('admins' => array(), 'excludes' => array(), 'implements' => array(), 'extends' => array(), 'instanceof' => array()))
|
|
|
->prototype('array')
|
|
|
+ ->fixXmlConfig('admin')
|
|
|
+ ->fixXmlConfig('exclude')
|
|
|
+ ->fixXmlConfig('implement')
|
|
|
+ ->fixXmlConfig('extend')
|
|
|
->children()
|
|
|
->arrayNode('admins')
|
|
|
->prototype('scalar')->end()
|