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 = $builder->root('dynamic_templates');
$node $node
->useAttributeAsKey('name')
->prototype('array') ->prototype('array')
->children() ->prototype('array')
->scalarNode('match')->end() ->children()
->scalarNode('unmatch')->end() ->scalarNode('match')->end()
->scalarNode('match_mapping_type')->end() ->scalarNode('unmatch')->end()
->scalarNode('path_match')->end() ->scalarNode('match_mapping_type')->end()
->scalarNode('path_unmatch')->end() ->scalarNode('path_match')->end()
->scalarNode('match_pattern')->end() ->scalarNode('path_unmatch')->end()
->append($this->getPropertiesNode()) ->scalarNode('match_pattern')->end()
->arrayNode('mapping')
->prototype('variable')
->treatNullLike(array())
->end()
->end()
->end()
->end() ->end()
->end() ->end()
; ;