Conditions | 1 |
Paths | 1 |
Total Lines | 39 |
Code Lines | 32 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function getConfigTreeBuilder() |
||
40 | { |
||
41 | $treeBuilder = new TreeBuilder(); |
||
42 | $rootNode = $treeBuilder->root($this->alias); |
||
43 | $rootNode->children() |
||
44 | ->arrayNode('drivers') |
||
45 | ->prototype('array') |
||
46 | ->children() |
||
47 | ->scalarNode('rabbitmq_connection') |
||
48 | ->cannotBeEmpty() |
||
49 | ->isRequired() |
||
50 | ->end() |
||
51 | ->scalarNode('exchange_name') |
||
52 | ->cannotBeEmpty() |
||
53 | ->isRequired() |
||
54 | ->end() |
||
55 | ->scalarNode('consumer_name') |
||
56 | ->cannotBeEmpty() |
||
57 | ->isRequired() |
||
58 | ->end() |
||
59 | ->scalarNode('consumer_queue_name') |
||
60 | ->cannotBeEmpty() |
||
61 | ->isRequired() |
||
62 | ->end() |
||
63 | ->scalarNode('producer_name') |
||
64 | ->cannotBeEmpty() |
||
65 | ->isRequired() |
||
66 | ->end() |
||
67 | ->end() |
||
68 | ->end() |
||
69 | ->end() |
||
70 | ->end(); |
||
71 | |||
72 | // Here you should define the parameters that are allowed to |
||
73 | // configure your bundle. See the documentation linked above for |
||
74 | // more information on that topic. |
||
75 | |||
76 | return $treeBuilder; |
||
77 | } |
||
78 | } |
||
79 |