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