Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Open
MatTheCat wants to merge2 commits intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromMatTheCat:deprecate-callable-firewall-listener

Conversation

MatTheCat
Copy link
Contributor

@MatTheCatMatTheCat commentedJun 1, 2025
edited
Loading

QA
Branch?7.4
Bug fix?no
New feature?no
Deprecations?yes
IssuesN/A
LicenseMIT

After spending some time in the Security component it occurred to me callable firewall listeners are obsolete now that we got theFirewallListenerInterface. Their deprecation has already been suggested (like in#34627 (comment) or#38751 (review)), so this PR does it.

Copy link
Contributor

@SpomkySpomky left a 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.

Security
--------

* Deprecate callable firewall listeners, extend `AbstractListener` instead
Copy link
Contributor

Choose a reason for hiding this comment

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

extendAbstractListener or implementFirewallListenerInterface

chalasr reacted with thumbs up emoji
@@ -122,6 +123,10 @@ public static function getSubscribedEvents()
protected function callListeners(RequestEvent $event, iterable $listeners)
{
foreach ($listeners as $listener) {
if (!$listener instanceof FirewallListenerInterface) {
trigger_deprecation('symfony/security-http', '7.4', 'Using a callable as firewall listener is deprecated, extend "%s" instead.', AbstractListener::class);
Copy link
Member

Choose a reason for hiding this comment

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

This should suggest implementing the interface instead as well and hint about which class needs it if/when possible

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Isf2b8c5e okay?

@MatTheCatMatTheCatforce-pushed thedeprecate-callable-firewall-listener branch from891e58e tof2b8c5eCompareJune 2, 2025 07:09
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@SpomkySpomkySpomky left review comments

@chalasrchalasrchalasr requested changes

Assignees
No one assigned
Projects
None yet
Milestone
7.4
Development

Successfully merging this pull request may close these issues.

4 participants
@MatTheCat@Spomky@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp