Files
wallabag/src/Wallabag/ImportBundle/DependencyInjection/Configuration.php

28 lines
694 B
PHP
Raw Normal View History

2015-10-23 14:01:27 +02:00
<?php
namespace Wallabag\ImportBundle\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_import');
$rootNode
->children()
->arrayNode('allow_mimetypes')
->prototype('scalar')->end()
->end()
2015-12-30 13:26:30 +01:00
->scalarNode('resource_dir')
->end()
->end()
;
2015-10-23 14:01:27 +02:00
return $treeBuilder;
}
}