public function loadUserByToken($hash, array $prioritizedLanguages = [])
    {
        if (!is_string($hash) || empty($hash)) {
            throw new InvalidArgumentValue('hash', $hash);
        }

        $spiUser = $this->userHandler->loadUserByToken($hash);

        return $this->buildDomainUserObject($spiUser, null, $prioritizedLanguages);
    }
public function loadUserByToken($hash, array $prioritizedLanguages = [])
    {
        if (!is_string($hash) || empty($hash)) {
            throw new InvalidArgumentValue('hash', $hash);
        }

        $spiUser = $this->userHandler->loadUserByToken($hash);

        return $this->buildDomainUserObject($spiUser, null, $prioritizedLanguages);
    }
public function loadUserByToken ( $ hash , array $ prioritizedLanguages = [ ] ) { if ( ! is_string ( $ hash ) || empty ( $ hash ) ) { throw new InvalidArgumentValue ( 'hash' , $ hash ) ; } $ spiUser = $ this -> userHandler -> loadUserByToken ( $ hash ) ; return $ this -> buildDomainUserObject ( $ spiUser , null , $ prioritizedLanguages ) ; }
Loads a user for the given token.

{@inheritdoc}

@param string $hash
@param string[] $prioritizedLanguages Used as prioritized language code on translated properties of returned object.

@return \eZ\Publish\API\Repository\Values\User\User

@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
@throws \eZ\Publish\Core\Base\Exceptions\InvalidArgumentValue
Loads a user for the given token .