/** * Logs calls and results of the authenticate() method of the Authentication Manager * * @after within(F3\FLOW3\Security\Authentication\AuthenticationManagerInterface) && method(.*->authenticate()) * @param \F3\FLOW3\AOP\JoinPointInterface $joinPoint The current joinpoint * @return mixed The result of the target method if it has not been intercepted * @author Robert Lemke <*****@*****.**> */ public function logManagerAuthenticate(\F3\FLOW3\AOP\JoinPointInterface $joinPoint) { if ($joinPoint->hasException()) { $exception = $joinPoint->getException(); $this->systemLogger->log('Authentication failed: "' . $exception->getMessage() . '" #' . $exception->getCode(), LOG_WARNING); throw $exception; } else { $this->systemLogger->log('Authentication successful.', LOG_INFO); } }