| Conditions | 2 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 26 | { |
||
| 27 | $cron = $this->configureCronExport($input, $output); |
||
| 28 | $key = $this->getExportKey(); |
||
| 29 | |||
| 30 | try { |
||
| 31 | $this->getContainer()->get('mybuilder.cronos_bundle.cron_process_updater')->updateWith($cron, $key); |
||
| 32 | $output->writeln(sprintf('<info>Cron successfully updated with key </info><comment>%s</comment>', $key)); |
||
| 33 | } catch (\RuntimeException $e) { |
||
| 34 | $output->writeln(sprintf('<comment>Cron cannot be updated - %s</comment>', $e->getMessage())); |
||
| 35 | } |
||
| 36 | |||
| 37 | return 0; |
||
| 38 | } |
||
| 39 | |||
| 47 |