You are here

public function Request::getRealMethod in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::getRealMethod()

Gets the "real" request method.

Return value

string The request method

See also

getMethod()

File

vendor/symfony/http-foundation/Request.php, line 1299

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getRealMethod() {
  return strtoupper($this->server
    ->get('REQUEST_METHOD', 'GET'));
}