Completed
Push — master ( 1f1d6f...d17677 )
by De Cramer
9s
created

Configuration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 25
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 16 1
1
<?php
2
3
namespace eXpansion\Core\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
9
/**
10
 * Class Configuration
11
 *
12
 * @package eXpansion\Core\DependencyInjection;
13
 * @author oliver de Cramer <[email protected]>
14
 */
15
class Configuration implements ConfigurationInterface
16
{
17
18
    /**
19
     * Generates the configuration tree builder.
20
     *
21
     * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder
22
     */
23
    public function getConfigTreeBuilder()
24
    {
25
        $treeBuilder = new TreeBuilder();
26
        $treeBuilder->root('e_xpansion_core')
27
            ->children()
28
                ->arrayNode('parameters')->children()
29
                    ->arrayNode('core_chat_color_codes')
30
                        ->useAttributeAsKey('name')
31
                        ->prototype('scalar')
32
                    ->end()
33
                ->end()
34
            ->end();
35
36
37
        return $treeBuilder;
38
    }
39
}