MultiCodingStandardExtension   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 15
ccs 0
cts 11
cp 0
rs 10
c 2
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A loadConfiguration() 0 4 1
A loadServicesFromConfigPath() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of Symplify
7
 * Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
8
 */
9
10
namespace Symplify\MultiCodingStandard\DI;
11
12
use Nette\DI\Compiler;
13
use Nette\DI\CompilerExtension;
14
15
final class MultiCodingStandardExtension extends CompilerExtension
16
{
17
    public function loadConfiguration()
18
    {
19
        $this->loadServicesFromConfigPath(__DIR__.'/../config/services.neon');
20
    }
21
22
    private function loadServicesFromConfigPath(string $configPath)
23
    {
24
        Compiler::loadDefinitions(
25
            $this->getContainerBuilder(),
26
            $this->loadFromFile($configPath)['services']
27
        );
28
    }
29
}
30