dynamic templates are a list of hashes and have a mapping key (not properties)

This commit is contained in:
Tobias Schultze 2014-06-30 16:19:10 +02:00
parent 9f85db9876
commit c9a24436f3

View file

@ -250,16 +250,21 @@ class Configuration implements ConfigurationInterface
$node = $builder->root('dynamic_templates');
$node
->useAttributeAsKey('name')
->prototype('array')
->children()
->scalarNode('match')->end()
->scalarNode('unmatch')->end()
->scalarNode('match_mapping_type')->end()
->scalarNode('path_match')->end()
->scalarNode('path_unmatch')->end()
->scalarNode('match_pattern')->end()
->append($this->getPropertiesNode())
->prototype('array')
->children()
->scalarNode('match')->end()
->scalarNode('unmatch')->end()
->scalarNode('match_mapping_type')->end()
->scalarNode('path_match')->end()
->scalarNode('path_unmatch')->end()
->scalarNode('match_pattern')->end()
->arrayNode('mapping')
->prototype('variable')
->treatNullLike(array())
->end()
->end()
->end()
->end()
->end()
;