You are here

public function RequestContext::getMethod in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/RequestContext.php \Symfony\Component\Routing\RequestContext::getMethod()

Gets the HTTP method.

The method is always an uppercased string.

Return value

string The HTTP method

File

vendor/symfony/routing/RequestContext.php, line 140

Class

RequestContext
Holds information about the current request.

Namespace

Symfony\Component\Routing

Code

public function getMethod() {
  return $this->method;
}