diff options
author | Ryan Weaver <ryan@thatsquality.com> | 2015-09-20 19:43:59 -0400 |
---|---|---|
committer | Ryan Weaver <ryan@thatsquality.com> | 2015-09-20 19:43:59 -0400 |
commit | 40181238b9145f8c917981351c97997942e0517b (patch) | |
tree | 474f55d0ca0d273a13b2b810b8afccdd8b9cef80 | |
parent | feea383a53c0bd09f50c22d8f6dccfd456185c9b (diff) | |
download | symfony-security-40181238b9145f8c917981351c97997942e0517b.zip symfony-security-40181238b9145f8c917981351c97997942e0517b.tar.gz symfony-security-40181238b9145f8c917981351c97997942e0517b.tar.bz2 |
Adding logging on this step and switching the order - not for any huge reason
-rw-r--r-- | Guard/Firewall/GuardAuthenticationListener.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Guard/Firewall/GuardAuthenticationListener.php b/Guard/Firewall/GuardAuthenticationListener.php index 38ca0a0..26d5852 100644 --- a/Guard/Firewall/GuardAuthenticationListener.php +++ b/Guard/Firewall/GuardAuthenticationListener.php @@ -165,13 +165,17 @@ class GuardAuthenticationListener implements ListenerInterface */ private function triggerRememberMe(GuardAuthenticatorInterface $guardAuthenticator, Request $request, TokenInterface $token, Response $response = null) { - if (!$guardAuthenticator->supportsRememberMe()) { + if (null === $this->rememberMeServices) { + if (null !== $this->logger) { + $this->logger->info('Remember me skipped: it is not configured for the firewall.', array('authenticator' => get_class($guardAuthenticator))); + } + return; } - if (null === $this->rememberMeServices) { + if (!$guardAuthenticator->supportsRememberMe()) { if (null !== $this->logger) { - $this->logger->info('Remember me skipped: it is not configured for the firewall.', array('authenticator' => get_class($guardAuthenticator))); + $this->logger->info('Remember me skipped: your authenticator does not support it.', array('authenticator' => get_class($guardAuthenticator))); } return; |