Zend\Mvc\Controller\AbstractRestfulController::processBodyContent
Process the raw body content
If the content-type indicates a JSON payload, the payload is immediately decoded and the data returned. Otherwise, the data is passed to parse_str(). If that function returns a single-member array with a key of "0", the method assumes that we have non-urlencoded content and returns the raw content; otherwise, the array created is returned.
Signature
protected function processBodyContent(mixed
$request )
Parameters
$request
— mixed
Returns
- object|string|array