This commit is contained in:
Cyprian Beauvois 2019-02-20 11:54:31 +01:00
parent 30f60525e4
commit 401b73f92c
1 changed files with 6 additions and 10 deletions

View File

@ -17,16 +17,12 @@ class Configuration implements ConfigurationInterface
{ {
$treeBuilder = new TreeBuilder(); $treeBuilder = new TreeBuilder();
$root = $treeBuilder->root('storage'); $root = $treeBuilder->root('storage');
$root->children() $root->useAttributeAsKey('storage_name')
->arrayNode('storage_name') ->children()
->useAttributeAsKey('storage_name') ->scalarNode('type')->end()
->children() ->scalarNode('bucket')->end()
->scalarNode('type')->end() ->scalarNode('region')->end()
->scalarNode('bucket')->end() ->scalarNode('endpoint')->end()
->scalarNode('region')->end()
->scalarNode('endpoint')->end()
->end()
->end()
->end() ->end()
->end(); ->end();
return ($treeBuilder); return ($treeBuilder);