Skip to content

Commit c7767ad

Browse files
committed
Merge branch '2.8' into 3.0
2 parents 3f7191f + 172b72b commit c7767ad

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Diff for: cookbook/security/guard-authentication.rst

+8-8
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

Diff for: reference/forms/types/options/choice_label.rst.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If your choice values are objects, then ``choice_label`` can also be a
4949
'choices' => array(
5050
new Status(Status::YES),
5151
new Status(Status::NO),
52-
new Status::(Status::MAYBE),
52+
new Status(Status::MAYBE),
5353
),
5454
'choices_as_values' => true,
5555
'choice_label' => 'displayName',

0 commit comments

Comments
 (0)