Completed
Push — master ( 1dff78...9fa5ae )
by GBProd
02:40
created

DomainEventExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 12
ccs 9
cts 9
cp 1
rs 9.4285
cc 1
eloc 7
nc 1
nop 2
crap 1
1
<?php
2
3
namespace GBProd\DomainEventBundle\DependencyInjection;
4
5
use Symfony\Component\Config\FileLocator;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Loader;
8
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
9
10
/**
11
 * Extension class for DomainEventBundle
12
 * 
13
 * @author gbprod <[email protected]>
14
 */
15
class DomainEventExtension extends Extension
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20 1
    public function load(array $configs, ContainerBuilder $container)
21
    {
22 1
        $configuration = new Configuration();
23 1
        $config = $this->processConfiguration($configuration, $configs);
24
25 1
        $loader = new Loader\YamlFileLoader(
26 1
            $container, 
27 1
            new FileLocator(__DIR__.'/../Resources/config')
28 1
        );
29
        
30 1
        $loader->load('services.yml');
31
    }
32
}