Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

Commit fdf3e0d

Browse files
committed
making queueable jobs work with 5.3
1 parent b87004e commit fdf3e0d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Feature.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,8 @@ public function run($job, $arguments = [], $extra = [])
4949
*
5050
* @return mixed
5151
*/
52-
public function runInQueue($job, $arguments, Queue $queue = null)
52+
public function runInQueue($job, array $arguments = [], $queue = 'default')
5353
{
54-
if (!$queue) {
55-
$queue = DefaultQueue::class;
56-
}
57-
5854
// instantiate and queue the job
5955
$reflection = new ReflectionClass($job);
6056
$jobInstance = $reflection->newInstanceArgs($arguments);

src/QueueableJob.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Queue\SerializesModels;
66
use Illuminate\Queue\InteractsWithQueue;
77
use Illuminate\Contracts\Queue\ShouldQueue;
8+
use Illuminate\Bus\Queueable;
89

910
/**
1011
* An abstract Job that can be managed with a queue
@@ -14,4 +15,5 @@ class QueueableJob extends Job implements ShouldQueue
1415
{
1516
use SerializesModels;
1617
use InteractsWithQueue;
18+
use Queueable;
1719
}

0 commit comments

Comments
 (0)