You are here

public function RequestContext::__construct in Zircon Profile 8

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

Constructor.

Parameters

string $baseUrl The base URL:

string $method The HTTP method:

string $host The HTTP host name:

string $scheme The HTTP scheme:

int $httpPort The HTTP port:

int $httpsPort The HTTPS port:

string $path The path:

string $queryString The query string:

File

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

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, $path = '/', $queryString = '') {
  $this
    ->setBaseUrl($baseUrl);
  $this
    ->setMethod($method);
  $this
    ->setHost($host);
  $this
    ->setScheme($scheme);
  $this
    ->setHttpPort($httpPort);
  $this
    ->setHttpsPort($httpsPort);
  $this
    ->setPathInfo($path);
  $this
    ->setQueryString($queryString);
}