Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Code Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Tests | 19 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | 2 | public function getConfigTreeBuilder() |
|
11 | { |
||
12 | 2 | $treeBuilder = new TreeBuilder(); |
|
13 | 2 | $rootNode = $treeBuilder->root('cross_knowledge_device_detect'); |
|
14 | |||
15 | $rootNode |
||
16 | 2 | ->children() |
|
17 | 2 | ->scalarNode('cache_manager')->info('The service name that will handle caching (must implement Doctrine\Common\Cache\CacheProvider))') |
|
18 | 2 | ->end() |
|
19 | 2 | ->arrayNode('device_detector_options') |
|
20 | 2 | ->info("Available options are discard_bot_information and skip_bot_detection which are booleans") |
|
21 | 2 | ->children() |
|
22 | 2 | ->booleanNode('discard_bot_information') |
|
23 | 2 | ->defaultTrue() |
|
24 | 2 | ->end() |
|
25 | 2 | ->booleanNode('skip_bot_detection') |
|
26 | 2 | ->defaultTrue() |
|
27 | 2 | ->end() |
|
28 | 2 | ->end() |
|
29 | 2 | ->end() |
|
30 | 2 | ->end(); |
|
31 | |||
32 | 2 | return $treeBuilder; |
|
33 | } |
||
34 | } |
||
35 |