Last active
September 23, 2019 09:46
-
-
Save isopen/e1d081ae6329f97dedecee559fecf85b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Symfony\Component\HttpFoundation\Session\SessionInterface; | |
| class AppDefaultAuthenticator extends AbstractGuardAuthenticator implements AuthenticatorInterface | |
| { | |
| ... | |
| private $session; | |
| ... | |
| public function __construct(SessionInterface $session) { | |
| $this->session = $session; | |
| } | |
| ... | |
| public function getCredentials(Request $request) | |
| { | |
| $this->session->set( | |
| Security::LAST_USERNAME, | |
| ); | |
| } | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment