Completed
Push — master ( 68921e...5e1382 )
by Nuno
01:58
created

CollisionAdapterSymfonyExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of Collision Adapter Symfony.
7
 *
8
 * (c) Nuno Maduro <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace NunoMaduro\CollisionAdapterSymfony\DependencyInjection;
15
16
use Symfony\Component\Config\FileLocator;
17
use Symfony\Component\DependencyInjection\ContainerBuilder;
18
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
19
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
20
21
/**
22
 * This is an Collision Adapter Symfony Extension implementation.
23
 *
24
 * @author Nuno Maduro <[email protected]>
25
 */
26
final class CollisionAdapterSymfonyExtension extends Extension
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31 3
    public function load(array $configs, ContainerBuilder $container): void
32
    {
33 3
        $loader = new PhpFileLoader($container, new FileLocator(__DIR__));
34
35 3
        $loader->load('../Resources/config/services.php');
36 3
    }
37
}
38