public function RequestContext::setMethod

Sets the HTTP method.

@api

Parameters

string $method The HTTP method:

1 call to RequestContext::setMethod()
RequestContext::fromRequest in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RequestContext.php

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RequestContext.php, line 138

Class

RequestContext
Holds information about the current request.

Namespace

Symfony\Component\Routing

Code

public function setMethod($method) {
  $this->method = strtoupper($method);
}