Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@ public function vote(TokenInterface $token, $subject, array $attributes)
*/
abstract protected function supports($attribute, $subject);

/**
* Perform a single access check operation on a given attribute, subject and token.
*
* @param string $attribute
* @param mixed $subject
* @param TokenInterface $token
*
* @return bool
*
* @deprecated
*/
protected function voteOnAttribute($attribute, $subject, TokenInterface $token)
{
return $this->shouldHaveAccess($attribute, $subject, $token);
}

/**
* Perform a single access check operation on a given attribute, subject and token.
*
Expand All @@ -65,5 +81,5 @@ abstract protected function supports($attribute, $subject);
*
* @return bool
*/
abstract protected function voteOnAttribute($attribute, $subject, TokenInterface $token);
abstract protected function shouldHaveAccess($attribute, $subject, TokenInterface $token);
}