给定一个 Symfony2 配置:
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('acme');
$rootNode
->children()
->booleanNode('enableErrorReport')
->defaultFalse()
->end()
->arrayNode('errorReportAdresses')
->info('a list of commaseparated email addresses')
->prototype('scalar')->end()
->end()
->end()
;
仅当为真时,我如何才能errorReportAdresses
强制执行?enableErrorReport