Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
35 | 3 | public function create() : Container |
|
36 | { |
||
37 | 3 | $configurator = new Configurator(); |
|
38 | 3 | $configurator->addConfig(__DIR__ . '/services.neon'); |
|
39 | 3 | $configurator->setTempDirectory($this->tempDir); |
|
40 | 3 | if (class_exists('Nette\Bridges\ApplicationDI\ApplicationExtension')) { |
|
41 | 3 | $configurator->addConfig(__DIR__ . '/setup.neon'); |
|
42 | } |
||
43 | 3 | $container = $configurator->createContainer(); |
|
44 | |||
45 | /** @var ArgumentsTransformer $argumentsTransformer */ |
||
46 | 3 | $argumentsTransformer = $container->getByType(ArgumentsTransformer::class); |
|
47 | 3 | $argumentsTransformer->setContainerBuilder($this->containerBuilder); |
|
48 | |||
49 | 3 | return $container; |
|
50 | } |
||
51 | } |
||
52 |