Completed
Push — master ( 3fc573...634850 )
by WEBEWEB
11:27
created

Configuration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 8 1
1
<?php
2
3
/*
4
 * Disclaimer: This source code is protected by copyright law and by
5
 * international conventions.
6
 *
7
 * Any reproduction or partial or total distribution of the source code, by any
8
 * means whatsoever, is strictly forbidden.
9
 *
10
 * Anyone not complying with these provisions will be guilty of the offense of
11
 * infringement and the penal sanctions provided for by law.
12
 *
13
 * (c) 2019 All rights reserved.
14
 */
15
16
namespace WBW\Bundle\JQuery\QueryBuilderBundle\DependencyInjection;
17
18
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
19
use Symfony\Component\Config\Definition\ConfigurationInterface;
20
use WBW\Bundle\CoreBundle\DependencyInjection\ConfigurationHelper;
21
22
/**
23
 * Configuration.
24
 *
25
 * @author webeweb <https://github.com/webeweb/>
26
 * @package WBW\Bundle\JQuery\QueryBuilderBundle\DependencyInjection
27
 */
28
class Configuration implements ConfigurationInterface {
29
30
    /**
31
     * {@inheritDoc}
32
     */
33
    public function getConfigTreeBuilder() {
34
35
        $treeBuilder = new TreeBuilder(WBWJQueryQueryBuilderExtension::EXTENSION_ALIAS);
36
37
        $rootNode = ConfigurationHelper::getRootNode($treeBuilder, WBWJQueryQueryBuilderExtension::EXTENSION_ALIAS);
38
39
        return $treeBuilder;
40
    }
41
}
42