Skip to content

Commit

Permalink
Fix bus service provider when loaded outside of the framework (#39740)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Nov 23, 2021
1 parent adb3144 commit dcda06f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Bus/BusServiceProvider.php
Expand Up @@ -46,8 +46,8 @@ protected function registerBatchServices()
$this->app->singleton(DatabaseBatchRepository::class, function ($app) {
return new DatabaseBatchRepository(
$app->make(BatchFactory::class),
$app->make('db')->connection(config('queue.batching.database')),
config('queue.batching.table', 'job_batches')
$app->make('db')->connection($app->config->get('queue.batching.database')),
$app->config->get('queue.batching.table', 'job_batches')
);
});
}
Expand Down

0 comments on commit dcda06f

Please sign in to comment.