public function rememberPasswordByEmail(
        UserEmaileableInterface $userRepository,
        $email,
        $recoverPasswordUrlName,
        $hashField = 'hash'
    ) {
        $user = $userRepository->findOneByEmail($email);

        if (!($user instanceof AbstractUser)) {
            return false;
        }

        $this->rememberPassword($user, $recoverPasswordUrlName, $hashField);

        return true;
    }
public function rememberPasswordByEmail(
        UserEmaileableInterface $userRepository,
        $email,
        $recoverPasswordUrlName,
        $hashField = 'hash'
    ) {
        $user = $userRepository->findOneByEmail($email);

        if (!($user instanceof AbstractUser)) {
            return false;
        }

        $this->rememberPassword($user, $recoverPasswordUrlName, $hashField);

        return true;
    }
public function rememberPasswordByEmail ( UserEmaileableInterface $ userRepository , $ email , $ recoverPasswordUrlName , $ hashField = 'hash' ) { $ user = $ userRepository -> findOneByEmail ( $ email ) ; if ( ! ( $ user instanceof AbstractUser ) ) { return false ; } $ this -> rememberPassword ( $ user , $ recoverPasswordUrlName , $ hashField ) ; return true ; }
Remember a password from a user, given its email.

@param UserEmaileableInterface $userRepository         User repository
@param string                  $email                  User email
@param string                  $recoverPasswordUrlName Recover password name
@param string                  $hashField              Hash

@return bool its been found and processed
Remember a password from a user given its email .