src/Vectorface/SnappyRouter/Handler/JsonRpcHandler.php
private function processPayload($service, $verb, $post)
    {
        $this->batch = is_array($post);
        if (false === $this->batch) {
            $post = array($post);
        }
        $this->requests = array_map(function ($payload) use ($service, $verb) {
            return new JsonRpcRequest($service, $payload, $verb);
        }, $post);
    }
private function processPayload($service, $verb, $post)
    {
        $this->batch = is_array($post);
        if (false === $this->batch) {
            $post = array($post);
        }
        $this->requests = array_map(function ($payload) use ($service, $verb) {
            return new JsonRpcRequest($service, $payload, $verb);
        }, $post);
    }
private function processPayload ( $ service , $ verb , $ post ) { $ this -> batch = is_array ( $ post ) ; if ( false === $ this -> batch ) { $ post = array ( $ post ) ; } $ this -> requests = array_map ( function ( $ payload ) use ( $ service , $ verb ) { return new JsonRpcRequest ( $ service , $ payload , $ verb ) ; } , $ post ) ; }
Processes the payload POST data and sets up the array of requests.
@param string $service The service being requested.
@param string $verb The HTTP verb being used.
@param array|object $post The raw POST data.
Processes the payload POST data and sets up the array of requests .