ProjetNormandieUserExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 8 1
1
<?php
2
3
namespace ProjetNormandie\UserBundle\DependencyInjection;
4
5
use Exception;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\Config\FileLocator;
8
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
9
use Symfony\Component\DependencyInjection\Loader;
10
11
/**
12
 * This is the class that loads and manages your bundle configuration.
13
 *
14
 * @link http://symfony.com/doc/current/cookbook/bundles/extension.html
15
 */
16
class ProjetNormandieUserExtension extends Extension
17
{
18
    /**
19
     * @param array            $configs
20
     * @param ContainerBuilder $container
21
     * @return void
22
     * @throws Exception
23
     */
24
    public function load(array $configs, ContainerBuilder $container): void
25
    {
26
        $configuration = new Configuration();
27
        $config = $this->processConfiguration($configuration, $configs);
0 ignored issues
show
Unused Code introduced by
The assignment to $config is dead and can be removed.
Loading history...
28
29
        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../../config'));
30
        $loader->load('services.yml');
31
        $loader->load('admin.yml');
32
    }
33
}
34