Skip to content

Commit 79d3968

Browse files
committed
minor #13817 Update authorization.rst (atailouloute)
This PR was merged into the 5.0 branch. Discussion ---------- Update authorization.rst Starting from SF5.0 `getRoles()` is replaced by `getRoleNames()` Commits ------- 4ab0b54 Update authorization.rst
2 parents 3db0312 + 4ab0b54 commit 79d3968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/security/authorization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ RoleVoter
123123
The :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\RoleVoter`
124124
supports attributes starting with ``ROLE_`` and grants access to the user
125125
when at least one required ``ROLE_*`` attribute can be found in the array of
126-
roles returned by the token's :method:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface::getRoles`
126+
roles returned by the token's :method:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface::getRoleNames`
127127
method::
128128

129129
use Symfony\Component\Security\Core\Authorization\Voter\RoleVoter;

0 commit comments

Comments
 (0)