public function loadUserByToken($hash)
    {
        $data = $this->userGateway->loadUserByToken($hash);

        if (empty($data)) {
            throw new NotFound('user', $hash);
        }

        return $this->mapper->mapUser(reset($data));
    }
public function loadUserByToken($hash)
    {
        $data = $this->userGateway->loadUserByToken($hash);

        if (empty($data)) {
            throw new NotFound('user', $hash);
        }

        return $this->mapper->mapUser(reset($data));
    }
public function loadUserByToken ( $ hash ) { $ data = $ this -> userGateway -> loadUserByToken ( $ hash ) ; if ( empty ( $ data ) ) { throw new NotFound ( 'user' , $ hash ) ; } return $ this -> mapper -> mapUser ( reset ( $ data ) ) ; }
Loads user with user hash.

@param string $hash

@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If user is not found

@return \eZ\Publish\SPI\Persistence\User
Loads user with user hash .