fix: Used ArrayNodeDefinition to append taskwarrior config to main

config
This commit is contained in:
Aerex
2020-05-29 11:45:53 -05:00
parent 346e5c239b
commit 2f87752f6e
4 changed files with 40 additions and 19 deletions

View File

@@ -27,15 +27,16 @@ class ConfigBuilder implements ConfigurationInterface {
->arrayNode('logger')
->canBeEnabled()
->children()
->scalarNode('file')
->end()
->scalarNode('file')->end()
->scalarNode('level')
->defaultValue('ERROR')
->validate()
->IfNotInArray(['DEBUG', 'INFO', 'NOTICE', 'WARNING', 'ERROR', 'CRITICAL', 'ALERT', 'EMERGENCY'])
->thenInvalid('Invalid log level %s')
->end()
->end();
->end()
->end()
->end()
->end();
foreach ($this->configs as $config) {
$ref = $ref->append($config->get());