Skip to content

Commit dcda06f

Browse files
Fix bus service provider when loaded outside of the framework (#39740)
1 parent adb3144 commit dcda06f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Bus/BusServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ protected function registerBatchServices()
4646
$this->app->singleton(DatabaseBatchRepository::class, function ($app) {
4747
return new DatabaseBatchRepository(
4848
$app->make(BatchFactory::class),
49-
$app->make('db')->connection(config('queue.batching.database')),
50-
config('queue.batching.table', 'job_batches')
49+
$app->make('db')->connection($app->config->get('queue.batching.database')),
50+
$app->config->get('queue.batching.table', 'job_batches')
5151
);
5252
});
5353
}

0 commit comments

Comments
 (0)