@@ 157-157 (lines=1) @@ | ||
154 | ->fixXmlConfig('constraint') //allows <constraint> instead of <constraints> |
|
155 | ->beforeNormalization() |
|
156 | ->ifArray() |
|
157 | ->then(function ($v) { return isset($v['constraint'])||isset($v['constraints'])?$v:array('constraints'=>$v); }) |
|
158 | ->end() |
|
159 | ->children() |
|
160 | ->arrayNode('constraints') |
|
@@ 170-170 (lines=1) @@ | ||
167 | ->fixXmlConfig('constraint') //allows <constraint> instead of <constraints> |
|
168 | ->beforeNormalization() |
|
169 | ->ifArray() |
|
170 | ->then(function ($v) { return isset($v['constraint'])||isset($v['constraints'])?$v:array('constraints'=>$v); }) |
|
171 | ->end() |
|
172 | ->children() |
|
173 | ->arrayNode('constraints') |