Skip to content

Commit f5a19a9

Browse files
committed
Enabled remember me for the GuardManagerListener
1 parent 0c1ef4a commit f5a19a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Firewall/GuardManagerListener.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Symfony\Component\Security\Core\Authentication\Authenticator\AuthenticatorInterface;
1818
use Symfony\Component\Security\Guard\Firewall\GuardAuthenticatorListenerTrait;
1919
use Symfony\Component\Security\Guard\GuardAuthenticatorHandler;
20+
use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface;
2021

2122
/**
2223
* @author Wouter de Jong <wouter@wouterj.nl>
@@ -34,6 +35,7 @@ class GuardManagerListener
3435
private $guardAuthenticators;
3536
protected $providerKey;
3637
protected $logger;
38+
private $rememberMeServices;
3739

3840
/**
3941
* @param AuthenticatorInterface[] $guardAuthenticators
@@ -58,6 +60,11 @@ public function __invoke(RequestEvent $requestEvent)
5860
$this->executeGuardAuthenticators($guardAuthenticators, $requestEvent);
5961
}
6062

63+
public function setRememberMeServices(RememberMeServicesInterface $rememberMeServices)
64+
{
65+
$this->rememberMeServices = $rememberMeServices;
66+
}
67+
6168
protected function getGuardKey(string $key): string
6269
{
6370
// Guard authenticators in the GuardManagerListener are already indexed

0 commit comments

Comments
 (0)