From 4d0a619db6d0e7cb6bbcef3ded732b4d0eb296b6 Mon Sep 17 00:00:00 2001 From: Abba Bryant Date: Wed, 25 Feb 2015 12:04:49 -0800 Subject: [PATCH] Adjusting DoctrineUserProvider so that it implements the new L5 Illuminate\Contracts\Auth\UserProvider instead of the old L4 interface. --- src/DoctrineUserProvider.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/DoctrineUserProvider.php b/src/DoctrineUserProvider.php index 71b569d..a16da33 100644 --- a/src/DoctrineUserProvider.php +++ b/src/DoctrineUserProvider.php @@ -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 @@ -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 */ @@ -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 @@ -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 @@ -75,7 +75,7 @@ public function updateRememberToken(Authenticatable $user, $token) /** * Retrieve a user by the given credentials. - + * * @param array $credentials * @return Authenticatable|null */ @@ -91,7 +91,7 @@ public function retrieveByCredentials(array $credentials) /** * Validate a user against the given credentials. - + * * @param Authenticatable $user * @param array $credentials * @return bool