mirror of
https://github.com/wallabag/wallabag.git
synced 2024-05-19 09:38:05 +00:00
28 lines
694 B
PHP
28 lines
694 B
PHP
<?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()
|
|
->scalarNode('resource_dir')
|
|
->end()
|
|
->end()
|
|
;
|
|
|
|
return $treeBuilder;
|
|
}
|
|
}
|