Completed
Branch master (4ff1ca)
by
unknown
02:40
created

Configuration::getConfigTreeBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 21
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 21
rs 9.3142
cc 1
eloc 16
nc 1
nop 0
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