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