IQ2iDataImporterExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 10
ccs 0
cts 7
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the DataImporter package.
7
 *
8
 * (c) Loïc Sapone <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace IQ2i\DataImporter\Bundle\DependencyInjection;
15
16
use IQ2i\DataImporter\Command\GenerateDtoCommand;
17
use Symfony\Component\DependencyInjection\ContainerBuilder;
18
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
19
20
class IQ2iDataImporterExtension extends Extension
21
{
22
    public function load(array $configs, ContainerBuilder $container): void
23
    {
24
        $container
25
            ->register('iq2i_data_importer.generate_dto_command', GenerateDtoCommand::class)
26
            ->addTag('console.command', ['command' => 'iq2i:data-importer:generate-dto'])
27
            ->setArguments([
28
                '%kernel.project_dir%/src/Dto',
29
                'App\\Dto',
30
            ]);
31
    }
32
}
33