Passed
Push — master ( c8bd10...f2fdc0 )
by WEBEWEB
03:40
created

Configuration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 10 1
1
<?php
2
3
/*
4
 * This file is part of the syntaxhighligter-bundle package.
5
 *
6
 * (c) 2019 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\SyntaxHighlighterBundle\DependencyInjection;
13
14
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
15
use Symfony\Component\Config\Definition\ConfigurationInterface;
16
17
/**
18
 * Configuration.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\SyntaxHighlighterBundle\DependencyInjection
22
 */
23
class Configuration implements ConfigurationInterface {
24
25
    /**
26
     * {@inheritDoc}
27
     */
28
    public function getConfigTreeBuilder() {
29
30
        $treeBuilder = new TreeBuilder();
31
32
        $rootNode = $treeBuilder->root("wbw_syntaxhighligter");
33
        $rootNode->children()
34
            ->booleanNode("twig")->defaultTrue()->info("Load Twig extensions")->end()
35
            ->end();
36
37
        return $treeBuilder;
38
    }
39
}
40