SolutionDriveSyliusProductBundlesExtension::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * Created by solutionDrive GmbH
7
 *
8
 * @copyright 2018 solutionDrive GmbH
9
 */
10
11
namespace solutionDrive\SyliusProductBundlesPlugin\DependencyInjection;
12
13
use Symfony\Component\Config\FileLocator;
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
use Symfony\Component\DependencyInjection\Extension\Extension;
16
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
17
18
final class SolutionDriveSyliusProductBundlesExtension extends Extension
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function load(array $config, ContainerBuilder $container): void
24
    {
25
        $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
26
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
27
28
        $loader->load('services.yml');
29
    }
30
}
31