Allow for bool type as config type
This commit is contained in:
@ -11,6 +11,7 @@ class Configuration implements ConfigurationInterface
|
||||
{
|
||||
public const TYPE_TEXT = 'text';
|
||||
public const TYPE_NUMBER = 'number';
|
||||
public const TYPE_BOOL = 'bool';
|
||||
|
||||
public function getConfigTreeBuilder()
|
||||
{
|
||||
@ -24,7 +25,7 @@ class Configuration implements ConfigurationInterface
|
||||
->children()
|
||||
->scalarNode('name')->end()
|
||||
->enumNode('type')
|
||||
->values([self::TYPE_TEXT, self::TYPE_NUMBER])
|
||||
->values([self::TYPE_TEXT, self::TYPE_NUMBER, self::TYPE_BOOL])
|
||||
->defaultValue(self::TYPE_TEXT)
|
||||
->end()
|
||||
->end()
|
||||
|
Reference in New Issue
Block a user