TreeExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 14
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A loadConfiguration() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of Zenify
7
 * Copyright (c) 2012 Tomas Votruba (http://tomasvotruba.cz)
8
 */
9
10
namespace Zenify\DoctrineExtensionsTree\DI;
11
12
use Kdyby\Events\DI\EventsExtension;
13
use Nette\DI\CompilerExtension;
14
15
16
final class TreeExtension extends CompilerExtension
17
{
18
19 1
	public function loadConfiguration()
20
	{
21 1
		$builder = $this->getContainerBuilder();
22
23 1
		$builder->addDefinition($this->prefix('listener'))
24 1
			->setClass('Gedmo\Tree\TreeListener')
25 1
			->addSetup('setAnnotationReader', ['@Doctrine\Common\Annotations\Reader'])
26 1
			->addTag(EventsExtension::TAG_SUBSCRIBER);
27 1
	}
28
29
}
30