OdiseoSyliusAvataxExtension::getConfiguration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusAvataxPlugin\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 OdiseoSyliusAvataxExtension extends Extension
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function load(array $config, ContainerBuilder $container): void
19
    {
20
        $this->processConfiguration($this->getConfiguration([], $container), $config);
21
22
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
23
24
        $loader->load('services.yaml');
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getConfiguration(array $config, ContainerBuilder $container): ConfigurationInterface
31
    {
32
        return new Configuration();
33
    }
34
}
35