File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,8 @@ The listener should then store the authenticated token using
17
17
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
18
18
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
19
19
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
20
- use Symfony\Component\Security\Http\Firewall\ListenerInterface;
21
20
22
- class SomeAuthenticationListener implements ListenerInterface
21
+ class SomeAuthenticationListener
23
22
{
24
23
/**
25
24
* @var TokenStorageInterface
@@ -38,7 +37,7 @@ The listener should then store the authenticated token using
38
37
39
38
// ...
40
39
41
- public function handle (RequestEvent $event)
40
+ public function __invoke (RequestEvent $event)
42
41
{
43
42
$request = $event->getRequest();
44
43
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ the user::
60
60
61
61
$requestMatcher = new RequestMatcher('^/secured-area/');
62
62
63
- // instances of Symfony\Component\Security\Http\Firewall\ListenerInterface
63
+ // array of callables
64
64
$listeners = [...];
65
65
66
66
$exceptionListener = new ExceptionListener(...);
@@ -108,7 +108,7 @@ Firewall Listeners
108
108
When the firewall gets notified of the ``kernel.request `` event, it asks
109
109
the firewall map if the request matches one of the secured areas. The first
110
110
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 ).
112
112
These listeners will all be asked to handle the current request. This basically
113
113
means: find out if the current request contains any information by which
114
114
the user might be authenticated (for instance the Basic HTTP authentication
You can’t perform that action at this time.
0 commit comments