wallabag/src/Wallabag/CoreBundle/DependencyInjection/Configuration.php

48 lines
1.4 KiB
PHP
Raw Normal View History

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()
->integerNode('items_on_page')
->defaultValue(12)
->end()
->scalarNode('theme')
->defaultValue('material')
->end()
->scalarNode('language')
->defaultValue('en')
->end()
->integerNode('rss_limit')
->defaultValue(50)
->end()
->integerNode('reading_speed')
->defaultValue(1)
->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;
}
}