You are here

public function Request::setMethod in Zircon Profile 8

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

Sets the request method.

Parameters

string $method:

File

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

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function setMethod($method) {
  $this->method = null;
  $this->server
    ->set('REQUEST_METHOD', $method);
}