Configuration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 40
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B getConfigTreeBuilder() 0 34 1
1
<?php
2
3
namespace DoS\TaggingBundle\DependencyInjection;
4
5
use DoS\CernelBundle\Config\AbstractConfiguration;
6
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
7
8
class Configuration extends AbstractConfiguration
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function getConfigTreeBuilder()
14
    {
15
        $treeBuilder = new TreeBuilder();
16
        $rootNode = $treeBuilder->root('dos_tagging');
17
18
        $this->setDefaults($rootNode, array(
19
            'resources' => array(
20
                'tag' => array(
21
                    'classes' => array(
22
                        'model' => 'DoS\TaggingBundle\Model\Tag',
23
                        'interface' => 'DoS\TaggingBundle\Model\TagInterface',
24
                        'repository' => 'DoS\TaggingBundle\Doctrine\ORM\TagRepository',
25
                        'controller' => 'DoS\TaggingBundle\Controller\TagController',
26
                    ),
27
                    'validation_groups' => array(
28
                        'default' => array('dos'),
29
                    ),
30
                ),
31
                'tagging' => array(
32
                    'classes' => array(
33
                        'model' => 'DoS\TaggingBundle\Model\Tagging',
34
                        'interface' => 'DoS\TaggingBundle\Model\TaggingInterface',
35
                        'repository' => 'DoS\TaggingBundle\Doctrine\ORM\TaggingRepository',
36
                        'controller' => 'DoS\TaggingBundle\Controller\TaggingController',
37
                    ),
38
                    'validation_groups' => array(
39
                        'default' => array('dos'),
40
                    ),
41
                ),
42
            ),
43
        ));
44
45
        return $treeBuilder;
46
    }
47
}
48