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

Commit07822b8

Browse files
committed
minorsymfony#3675 add missing code block directive (xabbuh)
This PR was merged into the 2.4 branch.Discussion----------add missing code block directive| Q | A| ------------- | ---| Doc fix? | yes| New docs? | no| Applies to | 2.4+| Fixed tickets |Thought we already had a pull request for this but didn't find one.Commits-------3ace4d6 add missing code block directive
2 parentsf893883 +3ace4d6 commit07822b8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎cookbook/security/api_key_authentication.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,13 @@ Handling Authentication Failure
214214
-------------------------------
215215

216216
In order for your ``ApiKeyAuthentication`` to correctly display a 403
217-
http status when either bad credentials or authentication fails you will
218-
need to implement the:class:`Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface` on your
219-
Authenticator. This will provide a method ``onAuthenticationFailure`` which
217+
http status when either bad credentials or authentication fails you will
218+
need to implement the:class:`Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface` on your
219+
Authenticator. This will provide a method ``onAuthenticationFailure`` which
220220
you can use to create an error ``Response``.
221221

222+
..code-block::php
223+
222224
// src/Acme/HelloBundle/Security/ApiKeyAuthenticator.php
223225
namespace Acme\HelloBundle\Security;
224226

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp