Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Security] Deprecate callable firewall listeners#60614
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Security] Deprecate callable firewall listeners#60614
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
Looks good. Just one remark about the changlog.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
f2b8c5e to311c89fCompare311c89f to253ed34CompareUh oh!
There was an error while loading.Please reload this page.
225e787 tofd98438CompareJust noticed that the |
fd98438 to2b96194Comparee900519 toc4d7fceCompare7dd75b6 to2b4d065CompareWith this PR |
2b4d065 to3b041a7CompareThere 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.
Let's keep AbstractListener, it's not a big deal - but let's deprecate its __invoke method.
src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/SecurityBundle/Tests/Debug/TraceableFirewallListenerTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
| } | ||
| privatefunctiongetListenerPriority(object$logoutListener):int | ||
| privatefunctiongetListenerPriority(object$listener):int |
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.
let's remember to inline this method on 8.0
c1a12a9 to11f9c3fCompare
Done; I also deprecated |
41ffe67 toa516e13Comparesrc/Symfony/Component/Security/Http/Tests/Firewall/AccessListenerTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
a516e13 to5234217Compare5234217 to510e506CompareJust to be sure: |
Thank you@MatTheCat. |
868f3dc intosymfony:7.4Uh oh!
There was an error while loading.Please reload this page.
…(MatTheCat)This PR was merged into the 8.0 branch.Discussion----------[Security] Remove callable firewall listeners support| Q | A| ------------- | ---| Branch? | 8.0| Bug fix? | no| New feature? | no| Deprecations? | no| Issues | N/A| License | MITFollow-up of#60614Now that firewall listeners must implement `FirewallListenerInterface`, their traceable version’s stub can be their class name again.Commits-------fcadbf0 Remove callable firewall listeners support
Uh oh!
There was an error while loading.Please reload this page.
After spending some time in the Security component it occurred to me callable firewall listeners are obsolete now that we got the
FirewallListenerInterface. Their deprecation has already been suggested (like in#34627 (comment) or#38751 (review)), so this PR does it.