Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
27 | 2 | protected function execute(InputInterface $input, OutputInterface $output) |
|
28 | { |
||
29 | 2 | $handler = $this->getContainer()->get('phobetor_rabbitmq_supervisor'); |
|
30 | |||
31 | 2 | if ($input->getOption('generate')) { |
|
32 | 1 | $handler->generate(); |
|
33 | 1 | } |
|
34 | |||
35 | 2 | $handler->stop(); |
|
36 | 2 | $handler->start(); |
|
37 | 2 | } |
|
38 | } |
||
39 |