UnalteredPsrHttpMessageBridgeExtension::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 4
c 3
b 0
f 0
dl 0
loc 8
ccs 0
cts 5
cp 0
rs 10
cc 1
nc 1
nop 2
crap 2
1
<?php
2
3
/**
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types=1);
9
10
namespace loophp\UnalteredPsrHttpMessageBridgeBundle\DependencyInjection;
11
12
use Symfony\Component\Config\FileLocator;
13
use Symfony\Component\DependencyInjection\ContainerBuilder;
14
use Symfony\Component\DependencyInjection\Extension\Extension;
15
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
16
17
final class UnalteredPsrHttpMessageBridgeExtension extends Extension
18
{
19
    /**
20
     * @phpstan-ignore-next-line
21
     */
22
    public function load(array $configs, ContainerBuilder $container): void
23
    {
24
        $loader = new YamlFileLoader(
25
            $container,
26
            new FileLocator(__DIR__ . '/../../config')
27
        );
28
29
        $loader->load('services.yaml');
30
    }
31
}
32