Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Simplify AbstractVoter #16079

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

Conversation

Koc
Copy link
Contributor

@Koc Koc commented Oct 2, 2015

Q A
Bug fix? no
New feature? no, just simplification
BC breaks? yes
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

I think we can make one more small change if we are breaking compatibility of AbstractVoter class anyway.

@stof
Copy link
Member

stof commented Oct 2, 2015

this must be done in 2.8 when introducing the method though, not in master. supports is not allowed to break BC between 2.8 and 3.0 as it is the new API introduced in 2.8.

However, I agree that passing the object rather than the class name makes it much easier to handle inheritance, as it will just be a instanceof check rather than 2 checks.

@wouterj
Copy link
Member

wouterj commented Oct 2, 2015

👍 for doing this in 2.8

@@ -758,6 +758,38 @@ UPGRADE FROM 2.x to 3.0
* The `supportsAttribute()` and `supportsClass()` methods of classes `AuthenticatedVoter`, `ExpressionVoter`
and `RoleVoter` have been removed.

* The `AbstractVoter::supports()` method signature have changed: second argument now is object instead of class name.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor grammar thing:
The AbstractVoter::supports() method signature has changed: second argument is now an object instead of class name.

@Koc
Copy link
Contributor Author

Koc commented Oct 2, 2015

will do it tomorrow. Thanx @jenkoian for corrections

@Koc
Copy link
Contributor Author

Koc commented Oct 4, 2015

#16102

@Koc Koc closed this Oct 4, 2015
@Koc Koc deleted the simplify-abstract-voter-new branch December 13, 2015 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants