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