/** * Gets user by email * * @param string $userEmail * @return User */ public function getUserByEmail($userEmail) { return $this->userService->getByEmail($userEmail); }
/** * Get a User by email. * * @param string $email * * @return User Entity */ private function getByEmail($email) { return $this->userService->getByEmail($email); }