KaliopIdentityManagementExtension::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
c 0
b 0
f 0
rs 9.9332
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Kaliop\IdentityManagementBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Resource\FileResource;
6
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
9
use Symfony\Component\Config\FileLocator;
10
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
11
use Symfony\Component\Yaml\Yaml;
12
13
/**
14
 * This is the class that loads and manages your bundle configuration
15
 *
16
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
17
 */
18
class KaliopIdentityManagementExtension extends Extension
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function load(array $configs, ContainerBuilder $container)
24
    {
25
        $loader = new YamlFileLoader(
26
            $container,
27
            new FileLocator( __DIR__ . '/../Resources/config' )
28
        );
29
30
        // New services
31
        $loader->load( 'services.yml' );
32
    }
33
}
34