src/Graviton/SchemaBundle/Constraint/ConstraintUtils.php
public function getCurrentRequestContent()
    {
        if ($this->requestStack->getCurrentRequest() instanceof Request) {
            return $this->requestStack->getCurrentRequest()->getContent();
        }
        return null;
    }
public function getCurrentRequestContent()
    {
        if ($this->requestStack->getCurrentRequest() instanceof Request) {
            return $this->requestStack->getCurrentRequest()->getContent();
        }
        return null;
    }
public function getCurrentRequestContent ( ) { if ( $ this -> requestStack -> getCurrentRequest ( ) instanceof Request ) { return $ this -> requestStack -> getCurrentRequest ( ) -> getContent ( ) ; } return null ; }
Returns the current request content

@return bool|null|resource|string the content
Returns the current request content