SitetheoryProfilerStorageExtension   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 7 2
1
<?php
2
3
namespace Sitetheory\Bundle\ProfilerStorageBundle\DependencyInjection;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension;
7
8
/**
9
 * Class SitetheoryProfilerStorageExtension.
10
 */
11
class SitetheoryProfilerStorageExtension extends FrameworkExtension
12
{
13
    /**
14
     * @param array            $configs
15
     * @param ContainerBuilder $container
16
     */
17
    public function load(array $configs, ContainerBuilder $container)
18
    {
19
        $configuration = new Configuration();
20
        $config = $this->processConfiguration($configuration, $configs);
21
22
        foreach ($config['profiler'] as $key => $value) {
23
            $container->setParameter($this->getAlias().'.profiler.'.$key, $value);
24
        }
25
    }
26
}
27