ContainerFactory::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4286
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Symnedi\Validator\Tests;
4
5
use Nette\Configurator;
6
use Nette\DI\Container;
7
8
9
class ContainerFactory
10
{
11
12
	/**
13
	 * @return Container
14
	 */
15
	public function create()
16
	{
17
		$configurator = new Configurator;
18
		$configurator->setTempDirectory(TEMP_DIR);
19
		$configurator->addConfig(__DIR__ . '/config/default.neon');
20
		return $configurator->createContainer();
21
	}
22
23
}
24