Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function configure(ArrayNodeDefinition $node) |
||
32 | { |
||
33 | $node |
||
34 | ->beforeNormalization() |
||
35 | ->ifString() |
||
36 | ->then(function ($v) { return array( |
||
37 | 'slug' => $v |
||
38 | ); }) |
||
39 | ->end() |
||
40 | ->children() |
||
41 | ->scalarNode('slug') |
||
42 | ->isRequired() |
||
43 | ->cannotBeEmpty() |
||
44 | ->end() |
||
45 | ->end(); |
||
46 | } |
||
47 | |||
56 |