diff --git a/src/Feature.php b/src/Feature.php index 41c92e7..b8d2eeb 100644 --- a/src/Feature.php +++ b/src/Feature.php @@ -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); diff --git a/src/QueueableJob.php b/src/QueueableJob.php index b4346a0..fc4be00 100644 --- a/src/QueueableJob.php +++ b/src/QueueableJob.php @@ -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 @@ -14,4 +15,5 @@ class QueueableJob extends Job implements ShouldQueue { use SerializesModels; use InteractsWithQueue; + use Queueable; }