3 namespace Wallabag\CoreBundle\DependencyInjection
;
5 use Symfony\Component\Config\Definition\Builder\TreeBuilder
;
6 use Symfony\Component\Config\Definition\ConfigurationInterface
;
8 class Configuration
implements ConfigurationInterface
10 public function getConfigTreeBuilder()
12 $treeBuilder = new TreeBuilder();
13 $rootNode = $treeBuilder->root('wallabag_core');
17 ->arrayNode('languages')
18 ->prototype('scalar')->end()
20 ->integerNode('items_on_page')
24 ->defaultValue('material')
26 ->scalarNode('language')
29 ->integerNode('rss_limit')
32 ->integerNode('reading_speed')
35 ->scalarNode('version')
37 ->scalarNode('paypal_url')
39 ->integerNode('cache_lifetime')
42 ->scalarNode('fetching_error_message')
44 ->scalarNode('fetching_error_message_title')
46 ->scalarNode('action_mark_as_read')
49 ->scalarNode('list_mode')
52 ->scalarNode('api_limit_mass_actions')
55 ->arrayNode('default_internal_settings')
58 ->scalarNode('name')->end()
59 ->scalarNode('value')->end()
61 ->values(['entry', 'misc', 'api', 'analytics', 'export', 'import'])
66 ->scalarNode('encryption_key_path')