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

26 lines
615 B
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()
->end()
;
return $treeBuilder;
}
}