8000 Updating AbstractVoter so that the method receives the TokenInterface by weaverryan · Pull Request #15870 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Updating AbstractVoter so that the method receives the TokenInterface #15870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Adding a note about the method becoming abstract in 3.0
  • Loading branch information
weaverryan committed Sep 24, 2015
commit 3665c1490e91deddf55b0cff964a29141ecc27ed
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ abstract protected function getSupportedAttributes();
* @param object $object
* @param UserInterface|string $user
*
* @deprecated Override voteOnAttribute instead
* @deprecated This method will be removed in 3.0 - override voteOnAttribute instead.
*
* @return bool
*/
Expand All @@ -136,6 +136,8 @@ protected function isGranted($attribute, $object, $user = null)
* a UserInterface object (fully authenticated user)
* a string (anonymously authenticated user).
*
* This method will become abstract in 3.0.
*
* @param string $attribute
* @param object $object
* @param TokenInterface $token
Expand Down
0