Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
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 | if ($input->getOption('generate')) { |
|
30 | 1 | $this->getContainer()->get('myonlinestore_rabbitmq_manager.config_generator')->generate(); |
|
31 | 1 | } |
|
32 | |||
33 | 2 | $supervisor = $this->getContainer()->get('myonlinestore_rabbitmq_manager.supervisor'); |
|
34 | 2 | $supervisor->stop(); |
|
35 | 2 | $supervisor->start(); |
|
36 | 2 | } |
|
37 | } |
||
38 |