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

Appearance settings

Commit 051f050

Browse filesBrowse files
[Security][Guard] Fixed a typo
1 parent 889db17 commit 051f050
Copy full SHA for 051f050

File tree

Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed

‎cookbook/security/guard-authentication.rst

Copy file name to clipboardExpand all lines: cookbook/security/guard-authentication.rst
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Finally, configure your ``firewalls`` key in ``security.yml`` to use this authen
303303
304304
# if you want, disable storing the user in the session
305305
# stateless: true
306-
306+
307307
# maybe other things, like form_login, remember_me, etc
308308
# ...
309309
@@ -427,7 +427,7 @@ Each authenticator needs the following methods:
427427

428428
**supportsRememberMe**
429429
If you want to support "remember me" functionality, return true from this method.
430-
You will still need to active ``rememebe_me`` under your firewall for it to work.
430+
You will still need to active ``remember_me`` under your firewall for it to work.
431431
Since this is a stateless API, you do not want to support "remember me"
432432
functionality in this example.
433433

@@ -448,17 +448,17 @@ to cause a failure::
448448

449449
// src/AppBundle/Security/TokenAuthenticator.php
450450
// ...
451-
451+
452452
use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;
453-
453+
454454
class TokenAuthenticator extends AbstractGuardAuthenticator
455455
{
456456
// ...
457-
457+
458458
public function getCredentials(Request $request)
459459
{
460460
// ...
461-
461+
462462
if ($token == 'ILuvAPIs') {
463463
throw new CustomUserMessageAuthenticationException(
464464
'ILuvAPIs is not a real API key: it\'s just a silly phrase'
@@ -467,7 +467,7 @@ to cause a failure::
467467

468468
// ...
469469
}
470-
470+
471471
// ...
472472
}
473473

@@ -512,7 +512,7 @@ Frequently Asked Questions
512512
513513
# if you want, disable storing the user in the session
514514
# stateless: true
515-
515+
516516
# maybe other things, like form_login, remember_me, etc
517517
# ...
518518

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.