Configuration::getConfigTreeBuilder()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Kendrick\SymfonyDebugToolbarGit\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * Class Configuration
10
 * @package Kendrick\SymfonyDebugToolbarGit\DependencyInjection
11
 */
12
class Configuration implements ConfigurationInterface
13
{
14
	/**
15
	 * {@inheritdoc}
16
	 */
17
	public function getConfigTreeBuilder()
18
	{
19
		$treeBuilder = new TreeBuilder();
20
		$rootNode = $treeBuilder->root('symfony_debug_toolbar_git');
21
22
		$rootNode
23
			->children()
24
			->scalarNode('repository_commit_url')
25
			->end()
26
		;
27
28
		return $treeBuilder;
29
	}
30
}
31