-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Move AbstractListener abstract methods to the new FirewallListenerInterface #38751
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] Move AbstractListener abstract methods to the new FirewallListenerInterface #38751
Conversation
4b108ee
to
170a564
Compare
170a564
to
7de8b4e
Compare
…ListenerInterface
7de8b4e
to
5dd70bd
Compare
Hmm, I'm not very sure about these changes. But the listener logic is quite complex, so I might completely miss something. What I see:
So, it should be possible to have a class with just an |
Actually At the time lazy firewalls were introduced, @nicolas-grekas and I talked about deprecating not extending Meanwhile we are reintroducing an interface which, right now, only covers the priority feature. About adding Does this make sense? |
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.
big 👍 on my side
this change enables lazy firewalls (but is not ad hoc for them) because it enables a better design, with a better split of the steps of a firewall
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.
Ah sorry, I originally was looking at this PR as "purely simplifying" instead of moving to more consistency.
If I understand correctly, the contract already is callable|FirewallListenerInterface
(it needs to be, for BC reasons IIRC). In that case 👍 and we might indeed want to deprecate callable
in Symfony 5.3 (I don't think it's possible to introduce new deprecations after feature freeze?)
Thank you @chalasr. |
We added a FirewallListenerInterface in 5.2, let's make it complete to allow for cleaner firewall listener implementations.