| 1 | <?php |
||
| 7 | class EchoConsumer implements QueueConsumer |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param mixed $message |
||
| 11 | * @param string[] $headers |
||
| 12 | * |
||
| 13 | * @return void |
||
| 14 | * |
||
| 15 | * @throws \Exception |
||
| 16 | */ |
||
| 17 | public function consume($message, array $headers = []) |
||
| 18 | { |
||
| 19 | print_r($headers); |
||
| 20 | echo $message . "\n"; |
||
| 21 | } |
||
| 22 | } |
||
| 23 |