We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 371bcef commit a962186Copy full SHA for a962186
src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/Jobs/RabbitMQJob.php
@@ -59,14 +59,12 @@ public function __construct(
59
*/
60
public function fire()
61
{
62
- $payload = $this->payload();
63
-
64
- list($class, $method) = JobName::parse($payload['job']);
+ try {
+ $payload = $this->payload();
65
66
- $this->instance = $this->resolve($class);
+ list($class, $method) = JobName::parse($payload['job']);
67
68
- try {
69
- $this->instance->{$method}($this, $payload['data']);
+ with($this->instance = $this->resolve($class))->{$method}($this, $payload['data']);
70
} catch (Exception $exception) {
71
if (
72
$this->causedByDeadlock($exception) ||
0 commit comments