Conditions | 2 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | } |
||
23 | |||
24 | public function add(Job $job): bool |
||
25 | { |
||
26 | try { |
||
27 | $this->prepare($job); |
||
28 | $this->adapter->add($job); |
||
29 | } catch (Exception $e) { |
||
30 | $this->logger->error('[Queue] An error has occurred when adding job: ' . $e->getMessage(), (array) $e); |
||
31 | |||
32 | return false; |
||
33 | } |
||
34 | |||
35 | return true; |
||
71 |