]>
Commit | Line | Data |
---|---|---|
c89d35e8 NL |
1 | <?php |
2 | ||
3 | namespace Wallabag\CoreBundle\DependencyInjection; | |
4 | ||
5 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; | |
6 | use Symfony\Component\Config\Definition\ConfigurationInterface; | |
7 | ||
8 | class Configuration implements ConfigurationInterface | |
9 | { | |
10 | public function getConfigTreeBuilder() | |
11 | { | |
12 | $treeBuilder = new TreeBuilder(); | |
13 | $rootNode = $treeBuilder->root('wallabag_core'); | |
14 | ||
15 | $rootNode | |
16 | ->children() | |
17 | ->arrayNode('languages') | |
18 | ->prototype('scalar')->end() | |
19 | ->end() | |
bc789687 JB |
20 | ->integerNode('items_on_page') |
21 | ->defaultValue(12) | |
22 | ->end() | |
23 | ->scalarNode('theme') | |
24 | ->defaultValue('material') | |
25 | ->end() | |
26 | ->scalarNode('language') | |
27 | ->defaultValue('en') | |
28 | ->end() | |
29 | ->integerNode('rss_limit') | |
30 | ->defaultValue(50) | |
31 | ->end() | |
bca54859 | 32 | ->integerNode('reading_speed') |
db1d4b1e | 33 | ->defaultValue(1) |
bca54859 | 34 | ->end() |
63e40f2d JB |
35 | ->scalarNode('version') |
36 | ->end() | |
37 | ->scalarNode('paypal_url') | |
38 | ->end() | |
b3f4a11a NL |
39 | ->integerNode('cache_lifetime') |
40 | ->defaultValue(10) | |
41 | ->end() | |
2297d60f JB |
42 | ->scalarNode('fetching_error_message') |
43 | ->end() | |
1c5da417 JC |
44 | ->scalarNode('fetching_error_message_title') |
45 | ->end() | |
24879db1 JB |
46 | ->scalarNode('action_mark_as_read') |
47 | ->defaultValue(1) | |
48 | ->end() | |
49 | ->scalarNode('list_mode') | |
50 | ->defaultValue(1) | |
51 | ->end() | |
efd351c9 NL |
52 | ->scalarNode('api_limit_mass_actions') |
53 | ->defaultValue(10) | |
54 | ->end() | |
426bb453 JB |
55 | ->arrayNode('default_internal_settings') |
56 | ->prototype('array') | |
57 | ->children() | |
58 | ->scalarNode('name')->end() | |
59 | ->scalarNode('value')->end() | |
60 | ->enumNode('section') | |
61 | ->values(['entry', 'misc', 'api', 'analytics', 'export', 'import']) | |
62 | ->end() | |
63 | ->end() | |
64 | ->end() | |
65 | ->end() | |
906424c1 JB |
66 | ->scalarNode('encryption_key_path') |
67 | ->end() | |
c89d35e8 NL |
68 | ->end() |
69 | ; | |
70 | ||
71 | return $treeBuilder; | |
72 | } | |
73 | } |