protected function onAuthenticationFailure(AuthenticationRequiredException $exception = null) { $this->flashMessageContainer->addMessage(new Error('Authentication failed!', $exception === null ? 1347016771 : $exception->getCode())); }