Configuration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 16
c 1
b 0
f 1
dl 0
loc 24
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 19 1
1
<?php
2
/**
3
 * @author Gerard van Helden <[email protected]>
4
 * @copyright Zicht Online <http://zicht.nl>
5
 */
6
7
namespace Zicht\Bundle\FrameworkExtraBundle\DependencyInjection;
8
9
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
10
use Symfony\Component\Config\Definition\ConfigurationInterface;
11
12
/**
13
 * Page bundle configuration
14
 */
15
class Configuration implements ConfigurationInterface
16
{
17
    /**
18
     * @{inheritDoc}
19
     */
20
    public function getConfigTreeBuilder()
21
    {
22
        $treeBuilder = new TreeBuilder();
23
        $rootNode = $treeBuilder->root('zicht_framework_extra');
24
25
        $rootNode
26
            ->children()
27
                ->scalarNode('requirejs')->end()
28
                ->scalarNode('uglify')->end()
29
                ->booleanNode('uglify_debug')->end()
30
                ->arrayNode('embed_helper')
31
                    ->children()
32
                        ->booleanNode('mark_exceptions_as_errors')->defaultValue(false)->end()
33
                    ->end()
34
                ->end()
35
                ->booleanNode('disable_schema-update')->defaultTrue()
36
            ->end();
37
38
        return $treeBuilder;
39
    }
40
}
41