Padam87AttributeExtension::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
c 4
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 5
nc 1
nop 2
1
<?php
2
3
namespace Padam87\AttributeBundle\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
class Padam87AttributeExtension extends Extension
11
{
12
    public function load(array $config, ContainerBuilder $container)
13
    {
14
        $loader = new YamlFileLoader(
15
            $container,
16
            new FileLocator(__DIR__ . '/../Resources/config')
17
        );
18
        
19
        $loader->load('services.yml');
20
    }
21
}
22