Skip to content

Commit 86e02c6

Browse files
committed
bug #3514 Fixed some small typos in code example (RobinvdVleuten)
This PR was merged into the 2.4 branch. Discussion ---------- Fixed some small typos in code example Hi, I found some small typos in the code example and fixed it: http://symfony.com/doc/current/cookbook/security/api_key_authentication.html Cheers, Robin Commits ------- 0c6cfd1 Example creates a class not an interface ea5531b An interface should be implemented 064c740 Fixed small typo in code example
2 parents 0dc8c26 + 0c6cfd1 commit 86e02c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/security/api_key_authentication.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ value and then a User object is created::
3838
{
3939
protected $userProvider;
4040

41-
public function __construct(ApiKeyUserProviderInterface $userProvider)
41+
public function __construct(ApiKeyUserProvider $userProvider)
4242
{
4343
$this->userProvider = $userProvider;
4444
}
@@ -59,7 +59,7 @@ value and then a User object is created::
5959
public function authenticateToken(TokenInterface $token, UserProviderInterface $userProvider, $providerKey)
6060
{
6161
$apiKey = $token->getCredentials();
62-
$username = $this->userProvider->getUsernameForApiKey($apiKey)
62+
$username = $this->userProvider->getUsernameForApiKey($apiKey);
6363

6464
if (!$username) {
6565
throw new AuthenticationException(

0 commit comments

Comments
 (0)