Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function getConfigTreeBuilder() |
||
19 | { |
||
20 | $tree = new TreeBuilder(); |
||
21 | $root = $tree->root('darkilliant_mq_process'); |
||
22 | |||
23 | $root |
||
24 | ->children() |
||
25 | ->arrayNode('client') |
||
26 | ->children() |
||
27 | ->scalarNode('type')->defaultValue('amqp_lib')->end() |
||
28 | ->scalarNode('host')->isRequired()->end() |
||
29 | ->scalarNode('port')->isRequired()->end() |
||
30 | ->scalarNode('user')->isRequired()->end() |
||
31 | ->scalarNode('password')->isRequired()->end() |
||
32 | ->scalarNode('vhost')->isRequired()->end() |
||
33 | ->end() |
||
34 | ->end() |
||
35 | ->end(); |
||
36 | |||
37 | return $tree; |
||
38 | } |
||
40 |