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

@return null|string the request method
Returns the request method of the current request