You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cookbook/security/voter_interface.rst.inc
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,16 @@
7
7
public function vote(TokenInterface $token, $post, array $attributes);
8
8
}
9
9
10
-
The :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface::supportsAttribute` method is used to check if the voter supports
11
-
the given user attribute (i.e: a role, an ACL, etc.).
10
+
The :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface::supportsAttribute`
11
+
method is used to check if the voter supports the given user attribute (i.e: a role, an ACL, etc.).
12
12
13
-
The :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface::supportsClass` method is used to check if the voter supports the
14
-
class of the object whose access is being checked (doesn't apply to this entry).
13
+
The :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface::supportsClass`
14
+
method is used to check if the voter supports the class of the object whose
15
+
access is being checked (doesn't apply to this entry).
15
16
16
-
The :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface::vote` method must implement the business logic that verifies whether
17
-
or not the user is granted access. This method must return one of the following
18
-
values:
17
+
The :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface::vote`
18
+
method must implement the business logic that verifies whether or not the
19
+
user is granted access. This method must return one of the following values:
19
20
20
21
* ``VoterInterface::ACCESS_GRANTED``: The authorization will be granted by this voter;
21
22
* ``VoterInterface::ACCESS_ABSTAIN``: The voter cannot decide if authorization should be granted;
0 commit comments