Configuration::getConfigTreeBuilder()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 9
nc 1
nop 0
dl 0
loc 14
rs 9.9666
c 0
b 0
f 0
1
<?php
2
3
namespace Darkilliant\ImportBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * @internal
10
 * @codeCoverageIgnore
11
 * Class Configuration
12
 */
13
class Configuration implements ConfigurationInterface
14
{
15
    public function getConfigTreeBuilder()
16
    {
17
        $treeBuilder = new TreeBuilder();
18
19
        $root = $treeBuilder->root('darkilliant_import');
20
21
        $root
22
            ->children()
23
                ->variableNode('fields_entity_resolver')->defaultValue([])->end()
24
                ->variableNode('entity_resolver_cache')->defaultValue([])->end()
25
                ->variableNode('imports')->defaultValue([])->end()
26
            ->end();
27
28
        return $treeBuilder;
29
    }
30
}
31