Configuration::getConfigTreeBuilder()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 9
nc 1
nop 0
1
<?php
2
3
/**
4
 * @author    Markus Tacker <[email protected]>
5
 * @copyright 2013-2016 Verein zur Förderung der Netzkultur im Rhein-Main-Gebiet e.V. | http://netzkultur-rheinmain.de/
6
 */
7
8
namespace BCRM\WebBundle\DependencyInjection;
9
10
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
11
use Symfony\Component\Config\Definition\ConfigurationInterface;
12
13
/**
14
 * This is the class that validates and merges configuration from the app/config files.
15
 */
16
class Configuration implements ConfigurationInterface
17
{
18
    /**
19
     * {@inheritDoc}
20
     */
21
    public function getConfigTreeBuilder()
22
    {
23
        $treeBuilder = new TreeBuilder();
24
        $rootNode    = $treeBuilder->root('bcrm_web');
25
        $rootNode
26
            ->children()
27
            ->scalarNode('content_dir')->defaultValue('%kernel.root_dir%/../web/content')->end()
28
            ->scalarNode('content_path')->defaultValue('/content')->end()
29
            ->end();
30
        return $treeBuilder;
31
    }
32
}
33