-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security] Deprecate callable firewall listeners #60614
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.
f2b8c5e
to
311c89f
Compare
311c89f
to
253ed34
Compare
225e787
to
fd98438
Compare
Just noticed that the |
fd98438
to
2b96194
Compare
e900519
to
c4d7fce
Compare
7dd75b6
to
2b4d065
Compare
With this PR |
2b4d065
to
3b041a7
Compare
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 keep AbstractListener, it's not a big deal - but let's deprecate its __invoke method.
src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/Tests/Debug/TraceableFirewallListenerTest.php
Outdated
Show resolved
Hide resolved
@@ -134,8 +137,8 @@ protected function callListeners(RequestEvent $event, iterable $listeners) | |||
} | |||
} | |||
|
|||
private function getListenerPriority(object $logoutListener): int | |||
private function getListenerPriority(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
to
11f9c3f
Compare
Done; I also deprecated |
41ffe67
to
a516e13
Compare
src/Symfony/Component/Security/Http/Tests/Firewall/AccessListenerTest.php
Outdated
Show resolved
Hide resolved
a516e13
to
5234217
Compare
5234217
to
510e506
Compare
Just to be sure: |
Thank you @MatTheCat. |
…(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 | MIT Follow-up of #60614 Now that firewall listeners must implement `FirewallListenerInterface`, their traceable version’s stub can be their class name again. Commits ------- fcadbf0 Remove callable firewall listeners support
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.