Skip to content

Commit c9a2443

Browse files
committed
dynamic templates are a list of hashes and have a mapping key (not properties)
1 parent 9f85db9 commit c9a2443

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

DependencyInjection/Configuration.php

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -250,16 +250,21 @@ public function getDynamicTemplateNode()
250250
$node = $builder->root('dynamic_templates');
251251

252252
$node
253-
->useAttributeAsKey('name')
254253
->prototype('array')
255-
->children()
256-
->scalarNode('match')->end()
257-
->scalarNode('unmatch')->end()
258-
->scalarNode('match_mapping_type')->end()
259-
->scalarNode('path_match')->end()
260-
->scalarNode('path_unmatch')->end()
261-
->scalarNode('match_pattern')->end()
262-
->append($this->getPropertiesNode())
254+
->prototype('array')
255+
->children()
256+
->scalarNode('match')->end()
257+
->scalarNode('unmatch')->end()
258+
->scalarNode('match_mapping_type')->end()
259+
->scalarNode('path_match')->end()
260+
->scalarNode('path_unmatch')->end()
261+
->scalarNode('match_pattern')->end()
262+
->arrayNode('mapping')
263+
->prototype('variable')
264+
->treatNullLike(array())
265+
->end()
266+
->end()
267+
->end()
263268
->end()
264269
->end()
265270
;

0 commit comments

Comments
 (0)