Skip to content

Commit 3db1460

Browse files
committed
[Security] Document FirewallListenerInterface as a firewall listener type
1 parent f86e8d4 commit 3db1460

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Security/FirewallContext.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bundle\SecurityBundle\Security;
1313

1414
use Symfony\Component\Security\Http\Firewall\ExceptionListener;
15+
use Symfony\Component\Security\Http\Firewall\FirewallListenerInterface;
1516
use Symfony\Component\Security\Http\Firewall\LogoutListener;
1617

1718
/**
@@ -28,7 +29,7 @@ class FirewallContext
2829
private ?FirewallConfig $config;
2930

3031
/**
31-
* @param iterable<mixed, callable> $listeners
32+
* @param iterable<mixed, callable|FirewallListenerInterface> $listeners
3233
*/
3334
public function __construct(iterable $listeners, ?ExceptionListener $exceptionListener = null, ?LogoutListener $logoutListener = null, ?FirewallConfig $config = null)
3435
{
@@ -47,7 +48,7 @@ public function getConfig()
4748
}
4849

4950
/**
50-
* @return iterable<mixed, callable>
51+
* @return iterable<mixed, callable|FirewallListenerInterface>
5152
*/
5253
public function getListeners(): iterable
5354
{

0 commit comments

Comments
 (0)