Completed
Push — master ( 93e0d3...8282d5 )
by Daniel
02:38
created

Configuration::getConfigTreeBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * @package narrator-bundle
4
 */
5
6
namespace Mleko\Narrator\Bundle\DependencyInjection;
7
8
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
9
use Symfony\Component\Config\Definition\ConfigurationInterface;
10
11
/**
12
 * This is the class that validates and merges configuration from your app/config files
13
 *
14
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
15
 */
16
class Configuration implements ConfigurationInterface
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function getConfigTreeBuilder()
22
    {
23
        $treeBuilder = new TreeBuilder();
24
        $rootNode = $treeBuilder->root('narrator');
25
26
        // Here you should define the parameters that are allowed to
27
        // configure your bundle. See the documentation linked above for
28
        // more information on that topic.
29
30
        return $treeBuilder;
31
    }
32
}
33