public function call($method, array $params = [], array $headers = [])
    {
        $request = new JsonRequest($method, $params, \uniqid(\gethostname().'.', true));
        $request->headers()->add($headers);

        try {
            return $this->execute($request);
        } catch (\Exception $e) {
            return $this->createResponseFromException($e, $request);
        }
    }
public function call($method, array $params = [], array $headers = [])
    {
        $request = new JsonRequest($method, $params, \uniqid(\gethostname().'.', true));
        $request->headers()->add($headers);

        try {
            return $this->execute($request);
        } catch (\Exception $e) {
            return $this->createResponseFromException($e, $request);
        }
    }
public function call ( $ method , array $ params = [ ] , array $ headers = [ ] ) { $ request = new JsonRequest ( $ method , $ params , \ uniqid ( \ gethostname ( ) . '.' , true ) ) ; $ request -> headers ( ) -> add ( $ headers ) ; try { return $ this -> execute ( $ request ) ; } catch ( \ Exception $ e ) { return $ this -> createResponseFromException ( $ e , $ request ) ; } }
Execute one RPC method.

@param string $method
@param array  $params
@param array  $headers

@return null|JsonResponse
Execute one RPC method .