Completed
Push — master ( bc7f64...acf9b5 )
by Yann
9s
created

SecurityExtension   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 19
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A load() 0 5 1
A getAlias() 0 4 1
1
<?php
2
3
namespace Knp\Rad\Security\DependencyInjection;
4
5
use Symfony\Component\Config\FileLocator;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Extension\Extension;
8
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
9
10
class SecurityExtension extends Extension
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function load(array $config, ContainerBuilder $container)
16
    {
17
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
18
        $loader->load('services.xml');
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function getAlias()
25
    {
26
        return 'knp_rad_security';
27
    }
28
}
29