RequestContext

Holds information about the current request.

@todo: Remove once the upstream RequestContext provides fromRequestStack(): https://github.com/symfony/symfony/issues/12057

Hierarchy

  • class \Symfony\Component\Routing\RequestContext

File

core/lib/Drupal/Core/Routing/RequestContext.php, line 15

Namespace

Drupal\Core\Routing

Members

Name Modifiers Type Description
RequestContext::$baseUrl private property
RequestContext::$completeBaseUrl protected property The scheme, host and base path, for example "http://example.com/d8".
RequestContext::$host private property
RequestContext::$httpPort private property
RequestContext::$httpsPort private property
RequestContext::$method private property
RequestContext::$parameters private property
RequestContext::$pathInfo private property
RequestContext::$queryString private property
RequestContext::$scheme private property
RequestContext::fromRequest public function Updates the RequestContext information based on a HttpFoundation Request. Overrides RequestContext::fromRequest
RequestContext::fromRequestStack public function Populates the context from the current request from the request stack.
RequestContext::getBaseUrl public function Gets the base URL.
RequestContext::getCompleteBaseUrl public function Gets the scheme, host and base path.
RequestContext::getHost public function Gets the HTTP host.
RequestContext::getHttpPort public function Gets the HTTP port.
RequestContext::getHttpsPort public function Gets the HTTPS port.
RequestContext::getMethod public function Gets the HTTP method.
RequestContext::getParameter public function Gets a parameter value.
RequestContext::getParameters public function Returns the parameters.
RequestContext::getPathInfo public function Gets the path info.
RequestContext::getQueryString public function Gets the query string.
RequestContext::getScheme public function Gets the HTTP scheme.
RequestContext::hasParameter public function Checks if a parameter value is set for the given parameter.
RequestContext::setBaseUrl public function Sets the base URL.
RequestContext::setCompleteBaseUrl public function Sets the complete base URL for the Request context.
RequestContext::setHost public function Sets the HTTP host.
RequestContext::setHttpPort public function Sets the HTTP port.
RequestContext::setHttpsPort public function Sets the HTTPS port.
RequestContext::setMethod public function Sets the HTTP method.
RequestContext::setParameter public function Sets a parameter value.
RequestContext::setParameters public function Sets the parameters.
RequestContext::setPathInfo public function Sets the path info.
RequestContext::setQueryString public function Sets the query string.
RequestContext::setScheme public function Sets the HTTP scheme.
RequestContext::__construct public function Constructor.
doc_Drupal
2016-10-29 09:37:45
Comments
Leave a Comment

Please login to continue.