src/RestPool.php
private function buildRequest($client, $route, $params)
    {
        list($resource, $method) = $this->explodeRoute($route);

        if (array_key_exists('parameters', $params)) {
            $parameters = $params['parameters'];
            unset($params['parameters']);

            return call_user_func_array(
                [ $client->setAsync()->{$resource}, $method ],
                array_merge($parameters, [$params])
            );
        }

        return $client->setAsync()->{$resource}->{$method}($params);
    }
private function buildRequest($client, $route, $params)
    {
        list($resource, $method) = $this->explodeRoute($route);

        if (array_key_exists('parameters', $params)) {
            $parameters = $params['parameters'];
            unset($params['parameters']);

            return call_user_func_array(
                [ $client->setAsync()->{$resource}, $method ],
                array_merge($parameters, [$params])
            );
        }

        return $client->setAsync()->{$resource}->{$method}($params);
    }
private function buildRequest ( $ client , $ route , $ params ) { list ( $ resource , $ method ) = $ this -> explodeRoute ( $ route ) ; if ( array_key_exists ( 'parameters' , $ params ) ) { $ parameters = $ params [ 'parameters' ] ; unset ( $ params [ 'parameters' ] ) ; return call_user_func_array ( [ $ client -> setAsync ( ) -> { $ resource } , $ method ] , array_merge ( $ parameters , [ $ params ] ) ) ; } return $ client -> setAsync ( ) -> { $ resource } -> { $ method } ( $ params ) ; }
Build a async request using the injected client

@param RestClient $client
@param string $route
@param array $params

@return RestClient
Build a async request using the injected client