Skip to content

Commit

Permalink
PHPORM-235 Remove custom DatabaseTokenRepository (#3124)
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN authored Sep 4, 2024
1 parent 5f0682f commit 7551f76
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 123 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
* **BREAKING CHANGE** Make Query\Builder return objects instead of array to match Laravel behavior by @GromNaN in [#3107](https://github.com/mongodb/laravel-mongodb/pull/3107)
* **BREAKING CHANGE** In DB query results, convert BSON `UTCDateTime` objects into `Carbon` date with the default timezone by @GromNaN in [#3119](https://github.com/mongodb/laravel-mongodb/pull/3119)
* Remove `MongoFailedJobProvider`, replaced by Laravel `DatabaseFailedJobProvider` by @GromNaN in [#3122](https://github.com/mongodb/laravel-mongodb/pull/3122)
* Remove custom `PasswordResetServiceProvider`, use the default `DatabaseTokenRepository` by @GromNaN in [#3124](https://github.com/mongodb/laravel-mongodb/pull/3124)
* Remove `Blueprint::background()` method by @GromNaN in [#3132](https://github.com/mongodb/laravel-mongodb/pull/3132)

## [4.8.0] - 2024-08-27
Expand Down
59 changes: 0 additions & 59 deletions src/Auth/DatabaseTokenRepository.php

This file was deleted.

23 changes: 0 additions & 23 deletions src/Auth/PasswordBrokerManager.php

This file was deleted.

22 changes: 0 additions & 22 deletions src/Auth/PasswordResetServiceProvider.php

This file was deleted.

19 changes: 0 additions & 19 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,14 @@

namespace MongoDB\Laravel\Tests;

use Illuminate\Auth\Passwords\PasswordResetServiceProvider as BasePasswordResetServiceProviderAlias;
use Illuminate\Foundation\Application;
use MongoDB\Laravel\Auth\PasswordResetServiceProvider;
use MongoDB\Laravel\MongoDBServiceProvider;
use MongoDB\Laravel\Tests\Models\User;
use MongoDB\Laravel\Validation\ValidationServiceProvider;
use Orchestra\Testbench\TestCase as OrchestraTestCase;

use function array_search;

class TestCase extends OrchestraTestCase
{
/**
* Get application providers.
*
* @param Application $app
*/
protected function getApplicationProviders($app): array
{
$providers = parent::getApplicationProviders($app);

unset($providers[array_search(BasePasswordResetServiceProviderAlias::class, $providers)]);

return $providers;
}

/**
* Get package providers.
*
Expand All @@ -39,7 +21,6 @@ protected function getPackageProviders($app): array
{
return [
MongoDBServiceProvider::class,
PasswordResetServiceProvider::class,
ValidationServiceProvider::class,
];
}
Expand Down

0 comments on commit 7551f76

Please sign in to comment.