Hi again. Unless I'm completely on the wrong track here, a quick and dirty
workaround for this problem I've found is to define the constructor of
RpcRequestItem as:

/**
   *
   * @param array $rpc
   * @param SecurityToken $token
   */
  public function __construct($rpc, SecurityToken $token) {
    if (empty($rpc['method'])) {
      throw new SocialSpiException("Missing method in RPC call");
    }
    parent::__construct($rpc['method'], $rpc['method'], $token);

    $this->data = $rpc;
  }

However, it would be better to rename $data to $params (analogous to the
RestRequestItem and to feed the constructor with better structured data,
i.e.: $rpc = Array(['service']=person, ['operation']=get,
['params']=Array(['userId']=1,['groupId']=@self))

Reply via email to