Skip to content

Commit

Permalink
respect null driver
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 28, 2022
1 parent b12f44c commit 9435827
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Queue/QueueServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ protected function registerFailedJobServices()
$this->app->singleton('queue.failer', function ($app) {
$config = $app['config']['queue.failed'];

if (! isset($config['driver']) || $config['driver'] === 'null') {
return new NullFailedJobProvider;
}

if (isset($config['driver']) && $config['driver'] === 'dynamodb') {
return $this->dynamoFailedJobProvider($config);
} elseif (isset($config['driver']) && $config['driver'] === 'database-uuids') {
Expand Down

0 comments on commit 9435827

Please sign in to comment.