Skip to content

Commit 9435827

Browse files
committed
respect null driver
1 parent b12f44c commit 9435827

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Queue/QueueServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ protected function registerFailedJobServices()
235235
$this->app->singleton('queue.failer', function ($app) {
236236
$config = $app['config']['queue.failed'];
237237

238+
if (! isset($config['driver']) || $config['driver'] === 'null') {
239+
return new NullFailedJobProvider;
240+
}
241+
238242
if (isset($config['driver']) && $config['driver'] === 'dynamodb') {
239243
return $this->dynamoFailedJobProvider($config);
240244
} elseif (isset($config['driver']) && $config['driver'] === 'database-uuids') {

0 commit comments

Comments
 (0)