I have the following configuration on my config.yml
ci_api:
file:
purposes:
attachment:
And my configuration class looks like this:
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('ci_api');
$rootNode
->children()
->arrayNode('file')
->children()
->arrayNode('purposes')
->children()
->end()
->end()
->end()
->end()
->end(); //children
return $treeBuilder;
When i tried to run this it gets an error saying:
Unrecognized option "attachment" under "ci_api.file.purposes"
Note that under purposes there can be indefinite number of children.
Thanks.
->prototype('array')before lastchildren()