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
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
Original file line number Diff line number Diff 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
108108When the firewall gets notified of the ``kernel.request `` event, it asks
109109the firewall map if the request matches one of the secured areas. The first
110110secured 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 ).
112112These listeners will all be asked to handle the current request. This basically
113113means: find out if the current request contains any information by which
114114the user might be authenticated (for instance the Basic HTTP authentication
You can’t perform that action at this time.
0 commit comments