| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function connect(array $config): QueueInterface |
||
| 48 | { |
||
| 49 | $config = array_merge([ |
||
| 50 | 'limit' => 15, |
||
| 51 | ], $config); |
||
| 52 | |||
| 53 | $queue = new MongoQueue( |
||
| 54 | $this->jobResolver, |
||
| 55 | $this->mongo, |
||
| 56 | $config['collection'], |
||
| 57 | $config['queue'], |
||
| 58 | $config['expire'], |
||
| 59 | $config['limit'] |
||
| 60 | ); |
||
| 61 | |||
| 62 | return $queue; |
||
| 63 | } |
||
| 64 | } |
||
| 65 |