HappyrBlazeExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 5
dl 0
loc 16
ccs 7
cts 7
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 10 1
1
<?php
2
3
namespace Happyr\BlazeBundle\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
 * @author Tobias Nyholm <[email protected]>
12
 */
13
class HappyrBlazeExtension extends Extension
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18 1
    public function load(array $configs, ContainerBuilder $container)
19
    {
20 1
        $configuration = new Configuration();
21 1
        $config = $this->processConfiguration($configuration, $configs);
22
23 1
        $container->setParameter('happyr.blaze.objects', $config['objects']);
24
25 1
        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
26 1
        $loader->load('services.xml');
27 1
    }
28
}
29