HeltheTurbolinksExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of the HeltheTurbolinksBundle package.
5
 *
6
 * (c) Carl Alexander <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Helthe\Bundle\TurbolinksBundle\DependencyInjection;
13
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
use Symfony\Component\Config\FileLocator;
16
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
17
use Symfony\Component\DependencyInjection\Loader;
18
19
/**
20
 * This is the class that loads and manages HeltheTurbolinksBundle configuration
21
 *
22
 * @author Carl Alexander <[email protected]>
23
 */
24
class HeltheTurbolinksExtension extends Extension
25
{
26
    /**
27
     * {@inheritDoc}
28
     */
29
    public function load(array $configs, ContainerBuilder $container)
30
    {
31
        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
32
        $loader->load('listeners.xml');
33
    }
34
}
35