Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit86e02c6

Browse files
committed
bugsymfony#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 exampleHi,I found some small typos in the code example and fixed it:http://symfony.com/doc/current/cookbook/security/api_key_authentication.htmlCheers,RobinCommits-------0c6cfd1 Example creates a class not an interfaceea5531b An interface should be implemented064c740 Fixed small typo in code example
2 parents0dc8c26 +0c6cfd1 commit86e02c6

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
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp