src/Graviton/DocumentBundle/Serializer/Handler/HashHandler.php
private function getCurrentRequestContent()
    {
        $currentRequest = $this->requestStack->getCurrentRequest();
        if (!is_null($currentRequest)) {
            $this->currentRequestContent = json_decode($currentRequest->getContent());
        }
        return $this->currentRequestContent;
    }
private function getCurrentRequestContent()
    {
        $currentRequest = $this->requestStack->getCurrentRequest();
        if (!is_null($currentRequest)) {
            $this->currentRequestContent = json_decode($currentRequest->getContent());
        }
        return $this->currentRequestContent;
    }
private function getCurrentRequestContent ( ) { $ currentRequest = $ this -> requestStack -> getCurrentRequest ( ) ; if ( ! is_null ( $ currentRequest ) ) { $ this -> currentRequestContent = json_decode ( $ currentRequest -> getContent ( ) ) ; } return $ this -> currentRequestContent ; }
returns the json_decoded content of the current request. if there is no request, it
will return null

@return mixed|null|object the json_decoded request content
returns the json_decoded content of the current request . if there is no request it will return null