Skip to content

Commit a061826

Browse files
pdscopesPeter Scopes
authored andcommitted
[bugfix] laravel 5.4 now parses jobs uses JobName static method parse
1 parent 73c1a42 commit a061826

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/Jobs/RabbitMQJob.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Illuminate\Contracts\Queue\Job as JobContract;
88
use Illuminate\Database\DetectsDeadlocks;
99
use Illuminate\Queue\Jobs\Job;
10+
use Illuminate\Queue\Jobs\JobName;
1011
use Illuminate\Support\Str;
1112
use PhpAmqpLib\Channel\AMQPChannel;
1213
use PhpAmqpLib\Message\AMQPMessage;
@@ -60,7 +61,7 @@ public function fire()
6061
{
6162
$payload = $this->payload();
6263

63-
list($class, $method) = $this->parseJob($payload['job']);
64+
list($class, $method) = JobName::parse($payload['job']);
6465

6566
$this->instance = $this->resolve($class);
6667

0 commit comments

Comments
 (0)