From f39686a1d5f077991cc8186dfc5cbb87b8151943 Mon Sep 17 00:00:00 2001 From: skowi Date: Wed, 15 Jan 2014 09:56:06 +0100 Subject: [PATCH 1/2] Changed extends to implements --- cookbook/security/api_key_authentication.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/security/api_key_authentication.rst b/cookbook/security/api_key_authentication.rst index cd2812ebd88..b23a3da9299 100644 --- a/cookbook/security/api_key_authentication.rst +++ b/cookbook/security/api_key_authentication.rst @@ -145,7 +145,7 @@ The ``$userProvider`` might look something like this:: use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Core\Exception\UnsupportedUserException; - class ApiKeyUserProvider extends UserProviderInterface + class ApiKeyUserProvider implements UserProviderInterface { public function getUsernameForApiKey($apiKey) { From f1c127386f59d296217fde0997b7bc378620cd15 Mon Sep 17 00:00:00 2001 From: skowi Date: Tue, 21 Jan 2014 08:52:34 +0100 Subject: [PATCH 2/2] ApiKeyUserProvider should implements UserProviderInterface --- cookbook/security/api_key_authentication.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/security/api_key_authentication.rst b/cookbook/security/api_key_authentication.rst index b23a3da9299..3b9fbe2558f 100644 --- a/cookbook/security/api_key_authentication.rst +++ b/cookbook/security/api_key_authentication.rst @@ -414,7 +414,7 @@ of the user to make sure it's not out-of-date. But regardless of your requiremen // src/Acme/HelloBundle/Security/ApiKeyUserProvider.php // ... - class ApiKeyUserProvider extends UserProviderInterface + class ApiKeyUserProvider implements UserProviderInterface { // ...