EresSyliusIyzicoPluginExtension::getAlias()   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
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Eres\SyliusIyzicoPlugin\DependencyInjection;
6
7
use Symfony\Component\Config\FileLocator;
8
use Symfony\Component\DependencyInjection\ContainerBuilder;
9
use Symfony\Component\DependencyInjection\Extension\Extension;
10
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
11
12
final class EresSyliusIyzicoPluginExtension extends Extension
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function load(array $config, ContainerBuilder $container): void
18
    {
19
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
20
21
        $loader->load('services.yml');
22
    }
23
24
    public function getAlias()
25
    {
26
        return 'eres_sylius_iyzico';
27
    }
28
29
30
}
31