Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 16 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 7 | public function getConfigTreeBuilder(): TreeBuilder |
|
14 | { |
||
15 | 7 | $builder = new TreeBuilder('sb_redis'); |
|
16 | $builder |
||
17 | 7 | ->getRootNode() |
|
18 | 7 | ->children() |
|
19 | 7 | ->arrayNode('clients') |
|
20 | 7 | ->addDefaultChildrenIfNoneSet('default') |
|
21 | 7 | ->useAttributeAsKey('default') |
|
22 | 7 | ->prototype('array') |
|
23 | 7 | ->children() |
|
24 | 7 | ->arrayNode('$parameters')->prototype('variable')->end()->end() |
|
25 | 7 | ->arrayNode('$options')->prototype('variable')->end()->end() |
|
26 | 7 | ->end() |
|
27 | 7 | ->end() |
|
28 | 7 | ->end() |
|
29 | 7 | ->end(); |
|
30 | |||
31 | 7 | return $builder; |
|
32 | } |
||
34 |