Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 18 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 1 | public function getConfigTreeBuilder() |
|
17 | { |
||
18 | 1 | $treeBuilder = new TreeBuilder(); |
|
19 | 1 | $root = $treeBuilder->root('happyr_simplebus'); |
|
20 | |||
21 | 1 | $root->children() |
|
22 | 1 | ->arrayNode('auto_register_handlers')->addDefaultsIfNotSet()->children() |
|
23 | 1 | ->booleanNode('enabled')->defaultTrue()->end() |
|
24 | 1 | ->scalarNode('command_namespace')->defaultNull()->end() |
|
25 | 1 | ->scalarNode('command_handler_namespace')->defaultNull()->end() |
|
26 | 1 | ->scalarNode('command_handler_path')->defaultNull()->end() |
|
27 | 1 | ->end()->end() |
|
28 | 1 | ->arrayNode('auto_register_event_subscribers')->addDefaultsIfNotSet()->children() |
|
29 | 1 | ->booleanNode('enabled')->defaultTrue()->end() |
|
30 | 1 | ->scalarNode('event_subscriber_namespace')->defaultNull()->end() |
|
31 | 1 | ->scalarNode('event_subscriber_path')->defaultNull()->end() |
|
32 | 1 | ->end()->end() |
|
33 | 1 | ->booleanNode('use_direct_publisher')->defaultFalse()->end() |
|
34 | 1 | ->end(); |
|
35 | |||
36 | 1 | return $treeBuilder; |
|
37 | } |
||
38 | } |
||
39 |