I want to process the following configuration:
acme_demo:
transitions:
- { hc_cba: 180 }
- { cba_hc: -1 }
It is clear that I will need to add an arrayNode, like
$rootNode
->children()
->arrayNode('transitions')
->beforeNormalization()
->ifArray()
->then(function($values) {
return array('transition' => $values);
})
->end()
->end()
->end()
->end()
;
but this gives me an InvalidConfigurationException with the message
Unrecognized options "transitions" under "acme_demo.state_machine"
How should I process those "inner" values?