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

GravitonAnalyticsExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
crap 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