10000 Update UPGRADE-3.0 with Voter::voteOnAttribute() by eriwin · Pull Request #18376 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Update UPGRADE-3.0 with Voter::voteOnAttribute() #18376

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 1 commit into from
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
Update UPGRADE-3.0 with Voter::voteOnAttribute()
Instructions showed that `AbstractVoter::isGranted()` had been replaced by `AbstractVoter::voteOnAttribute()`. Since AbstractVoter is removed it should be Voter::voteOnAttribute()
  • Loading branch information
Erik van Wingerden committed Mar 31, 2016
commit 970ddc842ad8a5feb7ac4c6418240b17bb299801
4 changes: 2 additions & 2 deletions UPGRADE-3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ UPGRADE FROM 2.x to 3.0
}
```

* The `AbstractVoter::isGranted()` method have been replaced by `AbstractVoter::voteOnAttribute()`.
* The `AbstractVoter::isGranted()` method have been replaced by `Voter::voteOnAttribute()`.

Before:

Expand All @@ -1094,7 +1094,7 @@ UPGRADE FROM 2.x to 3.0
After:

```php
class MyVoter extends AbstractVoter
class MyVoter extends Voter
{
protected function voteOnAttribute($attribute, $object, TokenInterface $token)
{
Expand Down
0