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