8000 minor #13083 [Security] Remove mention of removed firewall ListenerIn… · symfony/symfony-docs@4213bed · GitHub
[go: up one dir, main page]

Skip to content

Commit 4213bed

Browse files
committed
minor #13083 [Security] Remove mention of removed firewall ListenerInterface (HypeMC)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead (closes #13083). Discussion ---------- [Security] Remove mention of removed firewall ListenerInterface Fixes #13069. The `Symfony\Component\Security\Http\Firewall\ListenerInterface` has been removed in Symfony 5, yet there are still some references to it in the docs. This PR removes any remaining references to the interface. Commits ------- 4b57c37 Remove mention of removed firewall ListenerInterface
2 parents 48e63fe + 4b57c37 commit 4213bed

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)
0