| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 34 | { |
||
| 35 | 1 | $data = json_decode(gzuncompress(base64_decode($input->getArgument('event'))), true); |
|
| 36 | |||
| 37 | /** @var ConsumerInterface $service */ |
||
| 38 | 1 | $service = $this->getContainer()->get($input->getOption('callback')); |
|
| 39 | |||
| 40 | 1 | $service->execute( |
|
| 41 | 1 | new AMQPMessage( |
|
| 42 | 1 | $data['body'], |
|
| 43 | 1 | $data['properties'] |
|
| 44 | 1 | ) |
|
| 45 | 1 | ); |
|
| 46 | 1 | } |
|
| 47 | } |
||
| 48 |