Completed
Push — master ( cd6d5c...fa5688 )
by Axel
05:46 queued 03:12
created

Configuration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
lcom 0
cbo 3
dl 0
loc 26
ccs 0
cts 20
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 20 1
1
<?php
2
3
namespace Developtech\AgilityBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * This is the class that validates and merges configuration from your app/config files.
10
 *
11
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/configuration.html}
12
 */
13
class Configuration implements ConfigurationInterface
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function getConfigTreeBuilder()
19
    {
20
        $treeBuilder = new TreeBuilder();
21
        $rootNode = $treeBuilder->root('developtech_agility');
22
        $rootNode
23
            ->children()
24
                ->arrayNode('model')->isRequired()
25
                    ->children()
26
                        ->arrayNode('class')->isRequired()
27
                            ->children()
28
                                ->scalarNode('project')->isRequired()->end()
29
                                ->scalarNode('feature')->isRequired()->end()
30
                            ->end()
31
                        ->end()
32
                    ->end()
33
                ->end()
34
            ->end()
35
        ;
36
        return $treeBuilder;
37
    }
38
}
39