Completed
Push — master ( 38098f...62d62f )
by Danny
06:00
created

GenerateCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 22
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 7 1
A execute() 0 5 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
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
        $handler = $this->getContainer()->get('phobetor_rabbitmq_supervisor');
28 1
        $handler->generate();
29 1
    }
30
}
31