DefaultValueAkeneoInlineEditExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
lcom 0
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 8 1
1
<?php
2
3
namespace DefaultValue\Bundle\AkeneoInlineEditBundle\DependencyInjection;
4
5
use Symfony\Component\Config\FileLocator;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
8
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
9
10
/**
11
 * Extension class for process bundle configuration
12
 */
13
class DefaultValueAkeneoInlineEditExtension extends Extension
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function load(array $configs, ContainerBuilder $container)
19
    {
20
        $configuration = new Configuration();
21
        $this->processConfiguration($configuration, $configs);
22
23
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
24
        $loader->load('services.xml');
25
    }
26
}
27