public function apply(EndpointInvoker $endpointInvoker, $result)
    {
        return json_encode(
            $this->codec->slumber($result),
            JSON_PRETTY_PRINT
        );
    }
public function apply(EndpointInvoker $endpointInvoker, $result)
    {
        return json_encode(
            $this->codec->slumber($result),
            JSON_PRETTY_PRINT
        );
    }
@param EndpointInvoker $endpointInvoker
@param                 $result

@return mixed