Skip to content

Commit da32a5e

Browse files
committed
fix problems pointed out by @javiereguiluz and @cordoval
1 parent 28c6536 commit da32a5e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cookbook/security/abstract_voter.rst.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ which has this structure:
1818
.. include:: /cookbook/security/voter_interface.rst.inc
1919

2020
The basic functionality covering common use cases is provided
21-
and end developer is expected to implement the abstract methods.
21+
and developer is expected to implement the abstract methods.
2222

2323
The :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AbstractVoter::getSupportedClasses`
2424
method is used to provide an array of supported classes, i.e. ['\Acme\DemoBundle\Model\Product']
@@ -28,4 +28,4 @@ method is used to provide an array of supported attributes, i.e. ['CREATE', 'REA
2828

2929
The :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AbstractVoter::isGranted`
3030
method must implement the business logic that verifies whether or not a given
31-
user is allowed a given attribute on a given object. This method must return a boolean.
31+
user is allowed access to a given attribute on a given object. This method must return a boolean.

cookbook/security/voters_data_permission.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ edit a particular object. Here's an example implementation:
6363
namespace Acme\DemoBundle\Security\Authorization\Voter;
6464
6565
use Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter;
66-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
6766
use Symfony\Component\Security\Core\User\UserInterface;
6867
6968
class PostVoter extends AbstractVoter

0 commit comments

Comments
 (0)