Passed
Push — master ( 778999...ceaf16 )
by G
04:17
created

GwebSyliusProductDepositExtension   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfiguration() 0 3 1
A load() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gweb\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 GwebSyliusProductDepositExtension extends Extension
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function load(array $config, ContainerBuilder $container): void
19
    {
20
        $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
0 ignored issues
show
Unused Code introduced by
The assignment to $config is dead and can be removed.
Loading history...
21
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
22
23
        $loader->load('services.yml');
24
    }
25
26
    public function getConfiguration(array $config, ContainerBuilder $container): ConfigurationInterface
27
    {
28
        return new Configuration();
29
    }
30
}
31