function findUserByUsernameOrEmail($usernameOrEmail);
/** * {@inheritDoc} */ public function loadUserByUsername($usernameOrEmail) { $user = $this->userManager->findUserByUsernameOrEmail($usernameOrEmail); if (!$user) { throw new UsernameNotFoundException(sprintf('No user with name or email "%s" was found.', $usernameOrEmail)); } return $user; }