Conditions | 3 |
Paths | 6 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
28 | 3 | protected function execute(InputInterface $input, OutputInterface $output) |
|
29 | { |
||
30 | 3 | if ($input->getOption('generate')) { |
|
31 | 2 | $this->getContainer()->get('myonlinestore_rabbitmq_manager.config_generator')->generate(); |
|
32 | 2 | } |
|
33 | |||
34 | try { |
||
35 | 3 | $this->getContainer()->get('myonlinestore_rabbitmq_manager.supervisor')->start(); |
|
36 | 2 | $output->writeln('Supervisord is started'); |
|
37 | 3 | } catch (SupervisorAlreadyRunningException $exception) { |
|
38 | 1 | $output->writeln(sprintf('<error>%s</error>', $exception->getMessage())); |
|
39 | } |
||
40 | 3 | } |
|
41 | } |
||
42 |