Ejemplo n.º 1
0
 /**
  * Method for prepare request to parent node or doing another actions. Can be redefined in child classes,
  * but must return string with unique key of request. By default return the result of \Pipeline::sendRequest() call, and it is good practice.
  * In this method defines which commands will requested for parent node. By default client request just resend.
  * @param array $request Client request
  * @return string
  */
 protected function prepareRequest(array $request)
 {
     $this->logger->debug('Prepare request to parent node', ['key' => md5($request['key'])]);
     return $this->node->sendRequest(json_encode($request));
 }