Completed
Push — sensio-insight-fixes ( 787c3e )
by Yann
07:09
created

Configuration::getConfigTreeBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 10
nc 1
nop 0
1
<?php
2
3
namespace Yokai\EnumBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * @author Yann Eugoné <[email protected]>
10
 */
11
class Configuration implements ConfigurationInterface
12
{
13
    /**
14
     * @inheritdoc
15
     */
16
    public function getConfigTreeBuilder()
17
    {
18
        $treeBuilder = new TreeBuilder();
19
        $rootNode = $treeBuilder->root('debug');
20
21
        $rootNode
22
            ->children()
23
                ->variableNode('register_bundles')
24
                    ->defaultFalse()
25
                ->end()
26
            ->end()
27
        ;
28
29
        return $treeBuilder;
30
    }
31
}
32