Passed
Pull Request — master (#1)
by Maxime
06:00
created

MonsieurBizSyliusSalesReportsExtension   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 6 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MonsieurBiz\SyliusSalesReportsPlugin\DependencyInjection;
6
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\DependencyInjection\Extension\Extension;
9
10
final class MonsieurBizSyliusSalesReportsExtension extends Extension
11
{
12
13
    CONST EXTENSION_CONFIG_NAME = 'monsieur_biz_sylius_sales_reports';
14
15
    public function load(array $configs, ContainerBuilder $container)
16
    {
17
        $configuration = new Configuration();
18
        $config = $this->processConfiguration($configuration, $configs);
19
        foreach ($config as $name => $value) {
20
            $container->setParameter(self::EXTENSION_CONFIG_NAME . '.' . $name, $value);
21
        }
22
    }
23
}
24