Test Failed
Pull Request — master (#3)
by
unknown
03:25
created

CollisionAdapterSymfonyExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 2
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
    public function load(array $configs, ContainerBuilder $container): void
32
    {
33
        $loader = new PhpFileLoader($container, new FileLocator(__DIR__));
34
35
        $loader->load('../Resources/config/services.php');
36
    }
37
}
38