Skip to content

Commit a171700

Browse files
committed
bug #3477 Api key user provider should use "implements" instead of "extends" (skowi)
This PR was merged into the 2.4 branch. Discussion ---------- Api key user provider should use "implements" instead of "extends" Commits ------- f1c1273 ApiKeyUserProvider should implements UserProviderInterface f39686a Changed extends to implements
2 parents fb22fa0 + f1c1273 commit a171700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/security/api_key_authentication.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ The ``$userProvider`` might look something like this::
145145
use Symfony\Component\Security\Core\User\UserInterface;
146146
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
147147

148-
class ApiKeyUserProvider extends UserProviderInterface
148+
class ApiKeyUserProvider implements UserProviderInterface
149149
{
150150
public function getUsernameForApiKey($apiKey)
151151
{
@@ -414,7 +414,7 @@ of the user to make sure it's not out-of-date. But regardless of your requiremen
414414
// src/Acme/HelloBundle/Security/ApiKeyUserProvider.php
415415

416416
// ...
417-
class ApiKeyUserProvider extends UserProviderInterface
417+
class ApiKeyUserProvider implements UserProviderInterface
418418
{
419419
// ...
420420

0 commit comments

Comments
 (0)