Cleanup config and fix rendering

This commit is contained in:
Tim
2020-07-27 01:02:18 +02:00
parent db970b4c69
commit 6c43ee8fd1
3 changed files with 45 additions and 41 deletions

View File

@ -20,17 +20,12 @@ class Configuration implements ConfigurationInterface
->children()
->arrayNode('parameters')
->arrayPrototype()
->children()
->scalarNode('group')->defaultValue('misc')->end()
->arrayNode('values')
->arrayPrototype()
->children()
->scalarNode('name')->end()
->enumNode('type')
->values([self::TYPE_TEXT, self::TYPE_NUMBER])
->defaultValue(self::TYPE_TEXT)
->end()
->end()
->arrayPrototype()
->children()
->scalarNode('name')->end()
->enumNode('type')
->values([self::TYPE_TEXT, self::TYPE_NUMBER])
->defaultValue(self::TYPE_TEXT)
->end()
->end()
->end()