This commit is contained in:
2019-02-20 12:53:07 +01:00
parent 16c9a31a07
commit ab393251eb
2 changed files with 19 additions and 6 deletions

View File

@@ -20,14 +20,14 @@ class Configuration implements ConfigurationInterface
$root->useAttributeAsKey('storage_name')
->prototype('array')
->children()
->scalarNode('type')->isRequired()->cannotBeEmpty()->end()
->scalarNode('bucket')->isRequired()->cannotBeEmpty()->end()
->scalarNode('region')->isRequired()->cannotBeEmpty()->end()
->scalarNode('endpoint')->isRequired()->cannotBeEmpty()->end()
->scalarNode('type')->end()
->scalarNode('bucket')->end()
->scalarNode('region')->end()
->scalarNode('endpoint')->end()
->arrayNode('credentials')
->children()
->scalarNode('key')->isRequired()->cannotBeEmpty()->end()
->scalarNode('secret')->isRequired()->cannotBeEmpty()->end()
->scalarNode('key')->end()
->scalarNode('secret')->end()
->end()
->end()
->scalarNode('version')->end()