| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | public function start() |
||
| 55 | { |
||
| 56 | $this->logger->info('Starting daemon...'); |
||
| 57 | |||
| 58 | $options = $this->handler->options(new ConsumeOptions()); |
||
| 59 | |||
| 60 | $this->driver->consume( |
||
| 61 | $this->queueName, |
||
| 62 | function (Message $message) { |
||
| 63 | $this->monitor->monitor($this, $message); |
||
| 64 | return $this->handler->handle($message); |
||
| 65 | }, |
||
| 66 | $options->getTimeout(), |
||
| 67 | $options->isAutoAck() |
||
| 68 | ); |
||
| 69 | |||
| 70 | $this->stop(); |
||
| 71 | } |
||
| 72 | |||
| 95 |