ImportExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 4 1
1
<?php
2
3
/**
4
 * TechDivision\Import\Product\Msi\DependencyInjection\ImportExtension
5
 *
6
 * PHP version 7
7
 *
8
 * @author    Tim Wagner <[email protected]>
9
 * @copyright 2018 TechDivision GmbH <[email protected]>
10
 * @license   https://opensource.org/licenses/MIT
11
 * @link      https://github.com/techdivision/import-product-msi
12
 * @link      http://www.techdivision.com
13
 */
14
15
namespace TechDivision\Import\Product\Msi\DependencyInjection;
16
17
use Symfony\Component\Config\FileLocator;
18
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
19
use Symfony\Component\DependencyInjection\ContainerBuilder;
20
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
21
22
/**
23
 * The symfony extension implementation for the M2IF import product library.
24
 *
25
 * @author    Tim Wagner <[email protected]>
26
 * @copyright 2018 TechDivision GmbH <[email protected]>
27
 * @license   https://opensource.org/licenses/MIT
28
 * @link      https://github.com/techdivision/import-product-msi
29
 * @link      http://www.techdivision.com
30
 */
31
class ImportExtension extends Extension
32
{
33
34
    /**
35
     * Load's the bundles DI configuration.
36
     *
37
     * @param array                                                   $configs   The array with the configuration
38
     * @param \Symfony\Component\DependencyInjection\ContainerBuilder $container The container instance
39
     */
40
    public function load(array $configs, ContainerBuilder $container)
41
    {
42
        $loader = new XmlFileLoader($container, new FileLocator(dirname(__DIR__) . '/Resources/config'));
43
        $loader->load('services.xml');
44
    }
45
}
46