Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Use Hasher interface instead of HashManager #1157

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Bridge/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Laravel\Passport\Bridge;

use Illuminate\Hashing\HashManager;
use Illuminate\Contracts\Hashing\Hasher;
use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Repositories\UserRepositoryInterface;
use RuntimeException;
Expand All @@ -12,19 +12,19 @@ class UserRepository implements UserRepositoryInterface
/**
* The hasher implementation.
*
* @var \Illuminate\Hashing\HashManager
* @var \Illuminate\Contracts\Hashing\Hasher
*/
protected $hasher;

/**
* Create a new repository instance.
*
* @param \Illuminate\Hashing\HashManager $hasher
* @param \Illuminate\Contracts\Hashing\Hasher $hasher
* @return void
*/
public function __construct(HashManager $hasher)
public function __construct(Hasher $hasher)
{
$this->hasher = $hasher->driver();
$this->hasher = $hasher;
}

/**
Expand Down