You've already forked symfony-storage
first try to create a config tree build
This commit is contained in:
@@ -16,7 +16,17 @@ class Configuration implements ConfigurationInterface
|
|||||||
public function getConfigTreeBuilder()
|
public function getConfigTreeBuilder()
|
||||||
{
|
{
|
||||||
$treeBuilder = new TreeBuilder();
|
$treeBuilder = new TreeBuilder();
|
||||||
$treeBuilder->root('storage');
|
$root = $treeBuilder->root('storage');
|
||||||
|
$root->children()
|
||||||
|
->arrayNode('storage_name')
|
||||||
|
->children()
|
||||||
|
->scalarNode('type')->end()
|
||||||
|
->children()
|
||||||
|
->scalarNode('bucket')->end()
|
||||||
|
->children()
|
||||||
|
->scalarNode('region')->end()
|
||||||
|
->children()
|
||||||
|
->scalarNode('endpoint')->end();
|
||||||
return ($treeBuilder);
|
return ($treeBuilder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user