Skip to content

Commit 5537278

Browse files
committed
Merge branch 'master' into php8
2 parents b4c26d0 + 6dcc6c4 commit 5537278

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@ All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
55

6+
## [3.8.2] - 2020-12-18
7+
8+
### Changed
9+
- MongodbQueueServiceProvider does not use the DB Facade anymore [#2149](https://github.com/jenssegers/laravel-mongodb/pull/2149) by [@curosmj](https://github.com/curosmj)
10+
611
## [3.8.1] - 2020-10-23
712

13+
### Added
14+
- Laravel 8 support by [@divine](https://github.com/divine).
15+
816
### Changed
917
- Fix like with numeric values [#2127](https://github.com/jenssegers/laravel-mongodb/pull/2127) by [@hnassr](https://github.com/hnassr).
1018

src/Jenssegers/Mongodb/MongodbQueueServiceProvider.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Jenssegers\Mongodb;
44

5-
use Illuminate\Support\Facades\DB;
65
use Illuminate\Queue\QueueServiceProvider;
76
use Jenssegers\Mongodb\Queue\Failed\MongoFailedJobProvider;
87

@@ -14,7 +13,7 @@ class MongodbQueueServiceProvider extends QueueServiceProvider
1413
protected function registerFailedJobServices()
1514
{
1615
// Add compatible queue failer if mongodb is configured.
17-
if (DB::connection(config('queue.failed.database'))->getDriverName() == 'mongodb') {
16+
if ($this->app['db']->connection(config('queue.failed.database'))->getDriverName() == 'mongodb') {
1817
$this->app->singleton('queue.failer', function ($app) {
1918
return new MongoFailedJobProvider($app['db'], config('queue.failed.database'), config('queue.failed.table'));
2019
});

0 commit comments

Comments
 (0)