Completed
Branch master (4ff1ca)
by
unknown
03:20
created

Configuration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 21 1
1
<?php
2
3
namespace RDV\Bundle\MigrationBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
class Configuration implements ConfigurationInterface
9
{
10
    public function getConfigTreeBuilder()
11
    {
12
        $builder = new TreeBuilder();
13
        $rootNode = $builder->root('rdv_migration');
14
15
        $rootNode
16
            ->children()
17
                // default path inside each bundle to load migrations
18
                ->scalarNode('migration_path')
19
                    ->defaultValue('Migrations/Schema')
20
                ->end()
21
                ->scalarNode('fixtures_path_main')
22
                    ->defaultValue('Migrations/Data/ORM')
23
                ->end()
24
                ->scalarNode('fixtures_path_demo')
25
                    ->defaultValue('Migrations/Data/Demo/ORM')
26
                ->end()
27
            ->end();
28
29
        return $builder;
30
    }
31
}
32