aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/DependencyInjection/Configuration.php
blob: 39df9d3f90f5c73a3c89da6b2fcea056f7ccc7c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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;
    }
}