We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f379079 commit 4ab0b54Copy full SHA for 4ab0b54
components/security/authorization.rst
@@ -123,7 +123,7 @@ RoleVoter
123
The :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\RoleVoter`
124
supports attributes starting with ``ROLE_`` and grants access to the user
125
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`
+roles returned by the token's :method:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface::getRoleNames`
127
method::
128
129
use Symfony\Component\Security\Core\Authorization\Voter\RoleVoter;
0 commit comments