Configuration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 15 1
1
<?php
2
/*
3
 * This file is part of cwdFancyGridBundle
4
 *
5
 * (c)2017 cwd.at GmbH <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
declare(strict_types=1);
11
namespace Cwd\FancyGridBundle\DependencyInjection;
12
13
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
14
use Symfony\Component\Config\Definition\ConfigurationInterface;
15
16
/**
17
 * This is the class that validates and merges configuration from your app/config files.
18
 *
19
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/configuration.html}
20
 */
21
class Configuration implements ConfigurationInterface
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function getConfigTreeBuilder()
27
    {
28
        $treeBuilder = new TreeBuilder();
29
        $treeBuilder->root('cwd_fancy_grid')
30
            ->children()
31
                ->scalarNode('license')->defaultNull()->end()
32
                ->variableNode('js_options')->end()
33
            ->end();
34
35
        // Here you should define the parameters that are allowed to
36
        // configure your bundle. See the documentation linked above for
37
        // more information on that topic.
38
39
        return $treeBuilder;
40
    }
41
}
42