Skip to content

Adjusting DoctrineUserProvider so that it implements the new L5 Illumina... #106

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
14 changes: 7 additions & 7 deletions src/DoctrineUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityRepository;
use Illuminate\Auth\UserProviderInterface;
use Illuminate\Contracts\Auth\UserProvider;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\Hashing\Hasher;

class DoctrineUserProvider implements UserProviderInterface
class DoctrineUserProvider implements UserProvider
{
/**
* @var Hasher
Expand Down Expand Up @@ -34,7 +34,7 @@ public function __construct(Hasher $hasher, EntityManager $entityManager, $entit
}
/**
* Retrieve a user by their unique identifier.

*
* @param mixed $identifier
* @return Authenticatable|null
*/
Expand All @@ -45,7 +45,7 @@ public function retrieveById($identifier)

/**
* Retrieve a user by by their unique identifier and "remember me" token.

*
* @param mixed $identifier
* @param string $token
* @return Authenticatable|null
Expand All @@ -61,7 +61,7 @@ public function retrieveByToken($identifier, $token)

/**
* Update the "remember me" token for the given user in storage.

*
* @param Authenticatable $user
* @param string $token
* @return void
Expand All @@ -75,7 +75,7 @@ public function updateRememberToken(Authenticatable $user, $token)

/**
* Retrieve a user by the given credentials.

*
* @param array $credentials
* @return Authenticatable|null
*/
Expand All @@ -91,7 +91,7 @@ public function retrieveByCredentials(array $credentials)

/**
* Validate a user against the given credentials.

*
* @param Authenticatable $user
* @param array $credentials
* @return bool
Expand Down