summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Guard/Firewall/GuardAuthenticationListener.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Guard/Firewall/GuardAuthenticationListener.php b/Guard/Firewall/GuardAuthenticationListener.php
index 0ac7c12..1a659fc 100644
--- a/Guard/Firewall/GuardAuthenticationListener.php
+++ b/Guard/Firewall/GuardAuthenticationListener.php
@@ -77,7 +77,12 @@ class GuardAuthenticationListener implements ListenerInterface
$this->executeGuardAuthenticator($uniqueGuardKey, $guardAuthenticator, $event);
if ($event->hasResponse()) {
- $this->logger->debug(sprintf('The "%s" authenticator set the response. Any later authenticator will not be called', get_class($guardAuthenticator)));
+ if (null !== $this->logger) {
+ $this->logger->debug(sprintf(
+ 'The "%s" authenticator set the response. Any later authenticator will not be called',
+ get_class($guardAuthenticator)
+ ));
+ }
break;
}