8000 minor #13403 Update guard_authentication.rst (ThomasLandauer) · symfony/symfony-docs@b9b09fa · GitHub
[go: up one dir, main page]

Skip to content

Commit b9b09fa

Browse files
committed
minor #13403 Update guard_authentication.rst (ThomasLandauer)
This PR was merged into the 3.4 branch. Discussion ---------- Update guard_authentication.rst Removing "This will be called on *every* request" from `getCredentials()`, since it's only called if `supports()` returns `true`. Commits ------- cda5d3a Update guard_authentication.rst
2 parents abbfa0a + cda5d3a commit b9b09fa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

security/guard_authentication.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ The Guard Authenticator Methods
370370
Each authenticator needs the following methods:
371371

372372
**supports(Request $request)**
373-
This will be called on *every* request and your job is to decide if the
373+
This is called on *every* request and your job is to decide if the
374374
authenticator should be used for this request (return ``true``) or if it
375375
should be skipped (return ``false``).
376376

@@ -381,9 +381,8 @@ Each authenticator needs the following methods:
381381
``getCredentials()`` method.
382382

383383
**getCredentials(Request $request)**
384-
This will be called on *every* request and your job is to read the token (or
385-
whatever your "authentication" information is) from the request and return it.
386-
These credentials are later passed as the first argument of ``getUser()``.
384+
Your job is to read the token (or whatever your "authentication" information is)
385+
from the request and return it. These credentials are passed to ``getUser()``.
387386

388387
**getUser($credentials, UserProviderInterface $userProvider)**
389388
The ``$credentials`` argument is the value returned by ``getCredentials()``.

0 commit comments

Comments
 (0)
0