Passed
Branch master (046a17)
by Mathieu
02:22
created

Configuration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
c 2
b 0
f 0
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 11 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Neimheadh\SonataAnnotationBundle\DependencyInjection;
6
7
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
8
use Symfony\Component\Config\Definition\ConfigurationInterface;
9
10
/**
11
 * @author Marko Kunic <[email protected]>
12
 */
13
final class Configuration implements ConfigurationInterface
14
{
15
16
    /**
17
     * {@inheritDoc}
18
     */
19
    public function getConfigTreeBuilder(): TreeBuilder
20
    {
21
        $treeBuilder = new TreeBuilder('sonata_annotation');
22
        $rootNode = $treeBuilder->getRootNode();
23
24
        $rootNode
25
            ->children()
26
                ->scalarNode('directory')->end()
27
            ->end();
28
29
        return $treeBuilder;
30
    }
31
}
32