DefaultPolicy::reparameterizeForFormat PHP Method

reparameterizeForFormat() protected method

but rather it is based on the content-type of the entity.
protected reparameterizeForFormat ( Request &$request )
$request Request
    protected function reparameterizeForFormat(Request &$request)
    {
        if ($request->format == Formats::JSON) {
            $method = strtolower($request->method);
            $request->{$method} = json_decode($request->input, true);
        } else {
            if ($request->format == Formats::XML) {
                // TODO: XML reparameterization in request transformer
            }
        }
        return $request;
    }