Completed
Pull Request — 3.1 (#348)
by Piotr
07:35
created

FSiFixturesExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
/**
4
 * (c) FSi sp. z o.o. <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace FSi\FixturesBundle\DependencyInjection;
13
14
use Symfony\Component\Config\FileLocator;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
17
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
18
19
class FSiFixturesExtension extends Extension
20
{
21
    public function load(array $configs, ContainerBuilder $container)
22
    {
23
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
24
        $loader->load('services.xml');
25
    }
26
}
27