Check whether $this->logger is not null on GuardAuthenticationListener
This commit is contained in:
parent
64917c726d
commit
713b99fc8f
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user