Completed
Push — master ( 664783...554f9d )
by
unknown
15:59
created

GravitonAnalyticsExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 8 1
1
<?php
2
/**
3
 * Extension config and loader
4
 */
5
namespace Graviton\AnalyticsBundle\DependencyInjection;
6
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\Config\FileLocator;
9
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
10
use Symfony\Component\DependencyInjection\Loader;
11
12
/**
13
 * Basic functional test for Analytics
14
 *
15
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
16
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
17
 * @link     http://swisscom.ch
18
 */
19
class GravitonAnalyticsExtension extends Extension
20
{
21
    /**
22
     * @param array            $configs   Optional configuration
23
     * @param ContainerBuilder $container Sf Container
24
     * @return void
25
     */
26 2
    public function load(array $configs, ContainerBuilder $container)
27
    {
28 2
        $configuration = new Configuration();
29 2
        $this->processConfiguration($configuration, $configs);
30
31 2
        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
32 2
        $loader->load('services.yml');
33 2
    }
34
}
35