sqlLoginService->fetchPasswordAndDatas($identifier); $attributes = $user; unset($attributes[$this->sqlLoginRequest->getPasswordColumnName()]); if (empty($user[$this->sqlLoginRequest->getLoginColumnName()]) || empty($user[$this->sqlLoginRequest->getPasswordColumnName()])) { throw new UserNotFoundException('email or password not found'); } return new User($user[$this->sqlLoginRequest->getLoginColumnName()], $user[$this->sqlLoginRequest->getPasswordColumnName()], $attributes); } public function refreshUser(UserInterface $user): UserInterface { if (!$user instanceof User) { throw new UnsupportedUserException(sprintf('Invalid user class "%s".', get_class($user))); } return $this->loadUserByIdentifier($user->getUserIdentifier()); } public function supportsClass(string $class): bool { return User::class === $class || \is_subclass_of($class, User::class); } }