mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-19 14:16:29 +00:00
47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
<?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()
|
|
->scalarNode('version')
|
|
->end()
|
|
->scalarNode('paypal_url')
|
|
->end()
|
|
->integerNode('cache_lifetime')
|
|
->defaultValue(10)
|
|
->end()
|
|
->end()
|
|
;
|
|
|
|
return $treeBuilder;
|
|
}
|
|
}
|