FindExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 11 1
1
<?php
2
/**
3
 * Class FindExtension
4
 *
5
 * @author Mauro Moreno <[email protected]>
6
 */
7
namespace MauroMoreno\FindBundle\DependencyInjection;
8
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\DependencyInjection\Loader;
11
use Symfony\Component\Config\FileLocator;
12
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
13
14
/**
15
 * Class FindExtension
16
 * @package MauroMoreno\FindBundle\DependencyInjection
17
 */
18
class FindExtension extends Extension
19
{
20
21
    /**
22
     * {@inheritdoc}
23
     */
24 4
    public function load(array $configs, ContainerBuilder $container)
25
    {
26 4
        $configuration = new Configuration();
27 4
        $config = $this->processConfiguration($configuration, $configs);
28
29 1
        $loader = new Loader\YamlFileLoader($container, new FileLocator(
30
            __DIR__ . '/../Resources/config'
31 1
        ));
32
33 1
        $loader->load('services.yml');
34 1
    }
35
36
}
37