Skip to content

Commit 4563ad7

Browse files
committed
Merge branch '3.0'
2 parents af5cee3 + c7767ad commit 4563ad7

File tree

3 files changed

+9
-22
lines changed

3 files changed

+9
-22
lines changed

components/security/authorization.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,25 +85,12 @@ of :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterf
8585
which means they have to implement a few methods which allows the decision
8686
manager to use them:
8787

88-
``supportsAttribute($attribute)`` (deprecated as of 2.8)
89-
will be used to check if the voter knows how to handle the given attribute;
90-
91-
``supportsClass($class)`` (deprecated as of 2.8)
92-
will be used to check if the voter is able to grant or deny access for
93-
an object of the given class;
94-
9588
``vote(TokenInterface $token, $object, array $attributes)``
9689
this method will do the actual voting and return a value equal to one
9790
of the class constants of :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface`,
9891
i.e. ``VoterInterface::ACCESS_GRANTED``, ``VoterInterface::ACCESS_DENIED``
9992
or ``VoterInterface::ACCESS_ABSTAIN``;
10093

101-
.. note::
102-
103-
The ``supportsAttribute()`` and ``supportsClass()`` methods are deprecated
104-
as of Symfony 2.8 and no longer required in 3.0. These methods should not
105-
be called outside the voter class.
106-
10794
The Security component contains some standard voters which cover many use
10895
cases:
10996

cookbook/security/guard-authentication.rst

Lines 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

reference/forms/types/options/choice_label.rst.inc

Lines changed: 1 addition & 1 deletion
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)