| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function __construct(Queue $queue, EventDispatcherInterface $eventDispatcher, LoggerInterface $logger = null) |
||
| 19 | { |
||
| 20 | parent::__construct('worker', 1.0); |
||
| 21 | |||
| 22 | $consumeCommand = new Consume($queue, $eventDispatcher); |
||
| 23 | if ($logger) { |
||
| 24 | $consumeCommand->setLogger($logger); |
||
| 25 | } |
||
| 26 | |||
| 27 | $this->add($consumeCommand); |
||
| 28 | $this->setDefaultCommand('consume', true); |
||
| 29 | } |
||
| 31 |