GewebeSyliusProductDepositExtension   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A load() 0 6 1
A getConfiguration() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gewebe\SyliusProductDepositPlugin\DependencyInjection;
6
7
use Symfony\Component\Config\Definition\ConfigurationInterface;
8
use Symfony\Component\Config\FileLocator;
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\DependencyInjection\Extension\Extension;
11
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
12
13
final class GewebeSyliusProductDepositExtension extends Extension
14
{
15
    public function load(array $configs, ContainerBuilder $container): void
16
    {
17
        $config = $this->processConfiguration($this->getConfiguration([], $container), $configs);
0 ignored issues
show
Unused Code introduced by
The assignment to $config is dead and can be removed.
Loading history...
18
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
19
20
        $loader->load('services.yml');
21
    }
22
23
    public function getConfiguration(array $config, ContainerBuilder $container): ConfigurationInterface
24
    {
25
        return new Configuration();
26
    }
27
}
28