-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[3.0][Security] Remove deprecated features (follow up of #15899) #16035
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
Conversation
5a5b2bd
to
090f0e8
Compare
@@ -91,4 +75,9 @@ public function vote(TokenInterface $token, $object, array $attributes) | |||
|
|||
return $result; | |||
} | |||
|
|||
private function supportsAttribute($attribute) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not simply inline these conditions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree
Status: Needs work |
} | ||
``` | ||
|
||
* The `AuthenticatedVoter::supportsClass()`, `ExpressionVoter::supportsClass()` and `RoleVoter::supportsClass()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same should be said for all supportsAttribute()
methods (even when they are private, they are no longer part of the public API)
5a24236
to
e2d859c
Compare
a93983f
to
314fde6
Compare
314fde6
to
437398d
Compare
security tests pass ok |
Thank you @Koc. |
#15899) (Koc) This PR was merged into the 3.0-dev branch. Discussion ---------- [3.0][Security] Remove deprecated features (follow up of #15899) | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | #15899 | License | MIT | Doc PR | - - updated UPGRADE-3.0.md - removed unused `supportsClass` methods - changed visibility of `supportsAttribute` methods from public to private, removed `inheritdoc` annotation from them because there is no definition for this methods in parent interface - removed tests for `supportsClass` and `supportsAttribute` method - removed unused mock creation Commits ------- 437398d [3.0][Security] Remove deprecated features (follow up of #15899)
This PR was merged into the 2.8 branch. Discussion ---------- document method name changes in Voter class | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16035 | License | MIT | Doc PR | Commits ------- c0b9e99 document method name changes in Voter class
supportsClass
methodssupportsAttribute
methods from public to private, removedinheritdoc
annotation from them because there is no definition for this methods in parent interfacesupportsClass
andsupportsAttribute
method