Skip to content

Commit 93ba731

Browse files
authored
Merge pull request #16 from ivanwitzke/laravel-6-support
Support for Laravel 6
2 parents 0fc4cd3 + 3c46e42 commit 93ba731

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"require": {
88
"php": ">=7.1",
9-
"illuminate/queue": "^5.6",
9+
"illuminate/queue": "^6.0",
1010
"queue-interop/amqp-interop": "^0.8",
1111
"queue-interop/queue-interop": "^0.7|^0.8",
1212
"enqueue/enqueue": "^0.9",

src/EnqueueServiceProvider.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ private function bootInteropQueueDriver()
6565

6666
$this->app->extend('queue.worker', function ($worker, $app) {
6767
return new Worker(
68-
$app['queue'], $app['events'], $app[ExceptionHandler::class]
68+
$app['queue'],
69+
$app['events'],
70+
$app[ExceptionHandler::class],
71+
function () use ($app) {
72+
return $app->isDownForMaintenance();
73+
}
6974
);
7075
});
7176
}

0 commit comments

Comments
 (0)