Unset nested "fields" for deeper nested configs too
This commit is contained in:
parent
40e79b2abe
commit
588c4e2d02
2 changed files with 19 additions and 1 deletions
|
|
@ -458,6 +458,10 @@ class Configuration implements ConfigurationInterface
|
|||
->arrayNode($property)
|
||||
->useAttributeAsKey('name')
|
||||
->prototype('array')
|
||||
->validate()
|
||||
->ifTrue(function($v) { return isset($v['fields']) && empty($v['fields']); })
|
||||
->then(function($v) { unset($v['fields']); return $v; })
|
||||
->end()
|
||||
->treatNullLike(array())
|
||||
->addDefaultsIfNotSet()
|
||||
->children();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue