Skip to content

Commit 69aea7c

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Remove mention of removed firewall ListenerInterface
2 parents 9d11968 + 4213bed commit 69aea7c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

components/security/authentication.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ The listener should then store the authenticated token using
1717
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
1818
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
1919
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
20-
use Symfony\Component\Security\Http\Firewall\ListenerInterface;
2120

22-
class SomeAuthenticationListener implements ListenerInterface
21+
class SomeAuthenticationListener
2322
{
2423
/**
2524
* @var TokenStorageInterface
@@ -38,7 +37,7 @@ The listener should then store the authenticated token using
3837

3938
// ...
4039

41-
public function handle(RequestEvent $event)
40+
public function __invoke(RequestEvent $event)
4241
{
4342
$request = $event->getRequest();
4443

components/security/firewall.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ the user::
6060

6161
$requestMatcher = new RequestMatcher('^/secured-area/');
6262

63-
// instances of Symfony\Component\Security\Http\Firewall\ListenerInterface
63+
// array of callables
6464
$listeners = [...];
6565

6666
$exceptionListener = new ExceptionListener(...);
@@ -108,7 +108,7 @@ Firewall Listeners
108108
When the firewall gets notified of the ``kernel.request`` event, it asks
109109
the firewall map if the request matches one of the secured areas. The first
110110
secured area that matches the request will return a set of corresponding
111-
firewall listeners (which each implement :class:`Symfony\\Component\\Security\\Http\\Firewall\\ListenerInterface`).
111+
firewall listeners (which each is a callable).
112112
These listeners will all be asked to handle the current request. This basically
113113
means: find out if the current request contains any information by which
114114
the user might be authenticated (for instance the Basic HTTP authentication

0 commit comments

Comments
 (0)