public function RequestContext::__construct

Constructor.

@api

Parameters

string $baseUrl The base URL:

string $method The HTTP method:

string $host The HTTP host name:

string $scheme The HTTP scheme:

integer $httpPort The HTTP port:

integer $httpsPort The HTTPS port:

File

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

Class

RequestContext
Holds information about the current request.

Namespace

Symfony\Component\Routing

Code

public function __construct($baseUrl = '', $method = 'GET', $host = 'localhost', $scheme = 'http', $httpPort = 80, $httpsPort = 443) {
  $this->baseUrl = $baseUrl;
  $this->method = strtoupper($method);
  $this->host = $host;
  $this->scheme = strtolower($scheme);
  $this->httpPort = $httpPort;
  $this->httpsPort = $httpsPort;
  $this->parameters = array();
}