Skip to content

[Security] remove invalid deprecation notice on AbstractGuardAuthenticator::supports() #24684

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

Merged
merged 1 commit into from
Oct 25, 2017
Merged

[Security] remove invalid deprecation notice on AbstractGuardAuthenticator::supports() #24684

merged 1 commit into from
Oct 25, 2017

Conversation

kbond
Copy link
Member

@kbond kbond commented Oct 24, 2017

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #16835 (comment)
License MIT
Doc PR n/a

This deprecation flag causes a false positive.

@kbond kbond changed the title [Guard] remove invalid deprecation notice [Security] remove invalid deprecation notice on AbstractGuardAuthenticator::supports() Oct 24, 2017
Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

The supports() method is the first called in the lifecycle of an authenticator, if it returns false then the authenticator is skipped. It's unlikely to be called except by the guard handler.
For the record, this true-returning method allows to warn subclasses when they don't implement the new method while making the abstract implements the new interface.
We don't want the DebugClassLoader to trigger if users redefine it since this is what we ask them to do for upgrading.

@chalasr chalasr added this to the 3.4 milestone Oct 24, 2017
@kbond
Copy link
Member Author

kbond commented Oct 24, 2017

It will also prevent me from thinking I am doing something wrong in my IDE :)

screen

@fabpot
Copy link
Member

fabpot commented Oct 25, 2017

Thank you @kbond.

@fabpot fabpot merged commit 5fb44e7 into symfony:3.4 Oct 25, 2017
fabpot added a commit that referenced this pull request Oct 25, 2017
…ardAuthenticator::supports() (kbond)

This PR was merged into the 3.4 branch.

Discussion
----------

[Security] remove invalid deprecation notice on AbstractGuardAuthenticator::supports()

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #16835 (comment)
| License       | MIT
| Doc PR        | n/a

This deprecation flag causes a false positive.

Commits
-------

5fb44e7 [Guard] remove invalid deprecation notice
This was referenced Oct 30, 2017
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