Skip to content
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