GenerateCommand::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
3
namespace MyOnlineStore\Bundle\RabbitMqManagerBundle\Command;
4
5
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
6
use Symfony\Component\Console\Input\InputInterface;
7
use Symfony\Component\Console\Output\OutputInterface;
8
9
final class GenerateCommand extends ContainerAwareCommand
10
{
11
    /**
12
     * @inheritdoc
13
     */
14 1
    protected function configure()
15
    {
16 1
        $this
17 1
            ->setName('rabbitmq-manager:generate')
18 1
            ->setDescription('generate configuration files')
19
        ;
20 1
    }
21
22
    /**
23
     * @inheritdoc
24
     */
25 1
    protected function execute(InputInterface $input, OutputInterface $output)
26
    {
27 1
        $this->getContainer()->get('myonlinestore_rabbitmq_manager.config_generator')->generate();
28 1
    }
29
}
30