Conditions | 1 |
Paths | 1 |
Total Lines | 36 |
Code Lines | 31 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
18 | public function getConfigTreeBuilder() |
||
19 | { |
||
20 | $treeBuilder = new TreeBuilder(); |
||
21 | $rootNode = $treeBuilder->root('zoho_subscription'); |
||
22 | |||
23 | $rootNode |
||
24 | ->children() |
||
25 | ->arrayNode('api') |
||
26 | ->children() |
||
27 | ->scalarNode('key') |
||
28 | ->isRequired() |
||
29 | ->info('The service is not free. You must provide an API Key which can be found on : https://www.zoho.com/subscriptions/') |
||
30 | ->end() |
||
31 | ->scalarNode('organization_id') |
||
32 | ->isRequired() |
||
33 | ->info('Organization ID from Zoho Subscription') |
||
34 | ->end() |
||
35 | ->end() |
||
36 | ->end() |
||
37 | ->arrayNode('cache') |
||
38 | ->children() |
||
39 | ->scalarNode('service') |
||
40 | ->info('Defines the service id of the cache that will be used') |
||
41 | ->defaultValue('zoho.array.cache') |
||
42 | ->end() |
||
43 | ->integerNode('ttl') |
||
44 | ->info('Defines the TTL of the cache') |
||
45 | ->defaultValue(null) |
||
46 | ->end() |
||
47 | ->end() |
||
48 | ->end() |
||
49 | ->end() |
||
50 | ; |
||
51 | |||
52 | return $treeBuilder; |
||
53 | } |
||
54 | } |
||
55 |