2015-10-01 14:28:38 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Wallabag\CoreBundle\DependencyInjection;
|
|
|
|
|
|
|
|
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
|
|
|
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
|
|
|
|
|
|
|
class Configuration implements ConfigurationInterface
|
|
|
|
{
|
|
|
|
public function getConfigTreeBuilder()
|
|
|
|
{
|
|
|
|
$treeBuilder = new TreeBuilder();
|
|
|
|
$rootNode = $treeBuilder->root('wallabag_core');
|
|
|
|
|
|
|
|
$rootNode
|
|
|
|
->children()
|
|
|
|
->arrayNode('languages')
|
|
|
|
->prototype('scalar')->end()
|
|
|
|
->end()
|
2016-01-20 18:54:57 +00:00
|
|
|
->integerNode('items_on_page')
|
|
|
|
->defaultValue(12)
|
|
|
|
->end()
|
|
|
|
->scalarNode('theme')
|
|
|
|
->defaultValue('material')
|
|
|
|
->end()
|
|
|
|
->scalarNode('language')
|
|
|
|
->defaultValue('en')
|
|
|
|
->end()
|
|
|
|
->integerNode('rss_limit')
|
|
|
|
->defaultValue(50)
|
|
|
|
->end()
|
2016-03-08 15:44:25 +00:00
|
|
|
->integerNode('reading_speed')
|
2016-03-10 12:02:36 +00:00
|
|
|
->defaultValue(1)
|
2016-03-08 15:44:25 +00:00
|
|
|
->end()
|
2016-01-21 07:53:09 +00:00
|
|
|
->scalarNode('version')
|
|
|
|
->end()
|
|
|
|
->scalarNode('paypal_url')
|
|
|
|
->end()
|
2016-09-03 12:02:50 +00:00
|
|
|
->integerNode('cache_lifetime')
|
|
|
|
->defaultValue(10)
|
|
|
|
->end()
|
2015-10-01 14:28:38 +00:00
|
|
|
->end()
|
|
|
|
;
|
|
|
|
|
|
|
|
return $treeBuilder;
|
|
|
|
}
|
|
|
|
}
|