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

Commit

Permalink
making queueable jobs work with 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alisissa committed Nov 17, 2016
1 parent b87004e commit 3cc3777
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/Feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,8 @@ public function run($job, $arguments = [], $extra = [])
*
* @return mixed
*/
public function runInQueue($job, $arguments, Queue $queue = null)
public function runInQueue($job, array $arguments = [], $queue = 'default')
{
if (!$queue) {
$queue = DefaultQueue::class;
}

// instantiate and queue the job
$reflection = new ReflectionClass($job);
$jobInstance = $reflection->newInstanceArgs($arguments);
Expand Down
2 changes: 2 additions & 0 deletions src/QueueableJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Bus\Queueable;

/**
* An abstract Job that can be managed with a queue
Expand All @@ -14,4 +15,5 @@ class QueueableJob extends Job implements ShouldQueue
{
use SerializesModels;
use InteractsWithQueue;
use Queueable;
}

0 comments on commit 3cc3777

Please sign in to comment.