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

CollisionAdapterSymfonyExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 10
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 5 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