Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3362698

Browse filesBrowse files
committed
Update UPGRADE-3.0 with correct Voter details
AbstractVoter was removed, but the upgrade instructions to use Voter were not complete and continued to reference AbstractVoter.
1 parent 295f5ee commit 3362698
Copy full SHA for 3362698

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎UPGRADE-3.0.md

Copy file name to clipboardExpand all lines: UPGRADE-3.0.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ UPGRADE FROM 2.x to 3.0
995995
```
996996

997997
* The `AbstractVoter::getSupportedAttributes()` and `AbstractVoter::getSupportedClasses()`
998-
methods have been removed in favor of `AbstractVoter::supports()`.
998+
methods have been removed in favor of `Voter::supports()`.
999999

10001000
Before:
10011001

@@ -1019,7 +1019,9 @@ UPGRADE FROM 2.x to 3.0
10191019
After:
10201020

10211021
```php
1022-
class MyVoter extends AbstractVoter
1022+
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
1023+
1024+
class MyVoter extends Voter
10231025
{
10241026
protected function supports($attribute, $object)
10251027
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.