Completed
Pull Request — master (#2)
by
unknown
03:00
created

SmartAuthenticationExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
1
<?php
2
3
namespace Smart\AuthenticationBundle\DependencyInjection;
4
5
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
8
use Symfony\Component\Config\FileLocator;
9
10
/**
11
 * @author Mathieu Ducrot <[email protected]>
12
 */
13
class SmartAuthenticationExtension extends Extension
14
{
15
    public function load(array $configs, ContainerBuilder $container)
16
    {
17
        $loader = new XmlFileLoader(
18
            $container,
19
            new FileLocator(__DIR__.'/../Resources/config')
20
        );
21
        $loader->load('admin_extension.xml');
22
    }
23
}
24