10000 Mention `FirewallListenerInterface` in the deprecation message · symfony/symfony@311c89f · GitHub
[go: up one dir, main page]

Skip to content

Commit 311c89f

Browse files
committed
Mention FirewallListenerInterface in the deprecation message
1 parent 55c3cfb commit 311c89f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

UPGRADE-7.4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ If you're upgrading from a version below 7.3, follow the [7.3 upgrade guide](UPG
1111
Security
1212
--------
1313

14-
* Deprecate callable firewall listeners, extend `AbstractListener` instead
14+
* Deprecate callable firewall listeners, extend `AbstractListener` or implement `FirewallListenerInterface` instead

src/Symfony/Bundle/SecurityBundle/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CHANGELOG
44
7.4
55
---
66

7-
* Deprecate callable firewall listeners, extend `AbstractListener` instead
7+
* Deprecate callable firewall listeners, extend `AbstractListener` or implement `FirewallListenerInterface` instead
88

99
7.3
1010
---

src/Symfony/Component/Security/Http/Firewall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ protected function callListeners(RequestEvent $event, iterable $listeners)
124124
{
125125
foreach ($listeners as $listener) {
126126
if (!$listener instanceof FirewallListenerInterface) {
127-
trigger_deprecation('symfony/security-http', '7.4', 'Using a callable as firewall listener is deprecated, extend "%s" instead.', AbstractListener::class);
127+
trigger_deprecation('symfony/security-http', '7.4', 'Using a callable as firewall listener is deprecated, extend "%s" or implement "%s" instead.', AbstractListener::class, FirewallListenerInterface::class);
128128
}
129129

130130
$listener($event);

0 commit comments

Comments
 (0)
0