diff --git a/components/security/authorization.rst b/components/security/authorization.rst index d1df7d1f8bb..dee133d53d5 100644 --- a/components/security/authorization.rst +++ b/components/security/authorization.rst @@ -87,7 +87,7 @@ of :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterf which means they have to implement a few methods which allows the decision manager to use them: -``vote(TokenInterface $token, $object, array $attributes)`` +``vote(TokenInterface $token, $subject, array $attributes)`` this method will do the actual voting and return a value equal to one of the class constants of :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface`, i.e. ``VoterInterface::ACCESS_GRANTED``, ``VoterInterface::ACCESS_DENIED``