@@ 167-167 (lines=1) @@ | ||
164 | ->fixXmlConfig('constraint') //allows <constraint> instead of <constraints> |
|
165 | ->beforeNormalization() |
|
166 | ->ifArray() |
|
167 | ->then(function ($v) { return isset($v['constraint']) || isset($v['constraints']) ? $v : array('constraints' => $v); }) |
|
168 | ->end() |
|
169 | ->children() |
|
170 | ->arrayNode('constraints') |
|
@@ 180-180 (lines=1) @@ | ||
177 | ->fixXmlConfig('constraint') //allows <constraint> instead of <constraints> |
|
178 | ->beforeNormalization() |
|
179 | ->ifArray() |
|
180 | ->then(function ($v) { return isset($v['constraint']) || isset($v['constraints']) ? $v : array('constraints' => $v); }) |
|
181 | ->end() |
|
182 | ->children() |
|
183 | ->arrayNode('constraints') |