IncidentExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 3
dl 0
loc 19
ccs 0
cts 8
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 8 1
1
<?php
2
3
namespace IncidentBundle\DependencyInjection;
4
5
use Symfony\Component\Config\FileLocator;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Extension\Extension;
8
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
9
10
/**
11
 * Class IncidentExtension
12
 */
13
class IncidentExtension extends Extension
14
{
15
    /**
16
     * Loads a specific configuration.
17
     *
18
     * @param array            $configs   An array of configuration values
19
     * @param ContainerBuilder $container A ContainerBuilder instance
20
     *
21
     * @throws \InvalidArgumentException When provided tag is not defined in this extension
22
     */
23
    public function load(array $configs, ContainerBuilder $container)
24
    {
25
        $loader = new YamlFileLoader(
26
            $container,
27
            new FileLocator(__DIR__.'/../Resources/config')
28
        );
29
        $loader->load('services.yml');
30
    }
31
}
32