Completed
Pull Request — master (#11)
by Pierre
07:16 queued 05:09
created

SecurityExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
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