| Conditions | 2 |
| Paths | 5 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function execute(InputInterface $input, OutputInterface $output): int |
||
| 27 | { |
||
| 28 | try { |
||
| 29 | $job = $this->serializer->unserialize(base64_decode($input->getArgument(self::PARAM_NAME_JOB))); |
||
|
|
|||
| 30 | |||
| 31 | ob_start(); |
||
| 32 | $jobResults = $job(); |
||
| 33 | $ob = ob_get_clean(); |
||
| 34 | $error = null; |
||
| 35 | } catch (Exception $exception) { |
||
| 36 | $jobResults = null; |
||
| 37 | $ob = null; |
||
| 38 | $error = $exception; |
||
| 39 | } |
||
| 40 | |||
| 41 | $output->writeln(base64_encode(serialize(new AsyncChildResponse($jobResults, $ob, $error)))); |
||
| 42 | |||
| 43 | return 0; |
||
| 44 | } |
||
| 53 | } |