ExportExtension::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 2
1
<?php
2
3
/**
4
 * This file is part of the bugloos/export-bundle project.
5
 * (c) Bugloos <https://bugloos.com/>
6
 * For the full copyright and license information, please view
7
 * the LICENSE file that was distributed with this source code.
8
 */
9
10
namespace Bugloos\ExportBundle\DependencyInjection;
11
12
use Symfony\Component\Config\FileLocator;
13
use Symfony\Component\DependencyInjection\ContainerBuilder;
14
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
15
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
16
17
/**
18
 * @author Mojtaba Gheytasi <[email protected] | [email protected]>
19
 */
20
final class ExportExtension extends Extension
21
{
22
    /**
23
     * @param array            $configs
24
     * @param ContainerBuilder $container
25
     *
26
     * @throws \Exception
27
     */
28
    public function load(array $configs, ContainerBuilder $container)
29
    {
30
        $loader = new YamlFileLoader(
31
            $container,
32
            new FileLocator(__DIR__.'/../Resources/config')
33
        );
34
        $loader->load('services.yml');
35
    }
36
37
    public function getAlias(): string
38
    {
39
        return 'bugloos_export_bundle';
40
    }
41
}
42