Symfony\Component\Routing\RequestContext
Holds information about the current request.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class RequestContext
{
- // members
- private $baseUrl;
- private $pathInfo;
- private $method;
- private $host;
- private $scheme;
- private $httpPort;
- private $httpsPort;
- private $queryString;
- private array $parameters;
- // methods
- public void __construct()
- public void fromRequest()
- public string getBaseUrl()
- public void setBaseUrl()
- public string getPathInfo()
- public void setPathInfo()
- public string getMethod()
- public void setMethod()
- public string getHost()
- public void setHost()
- public string getScheme()
- public void setScheme()
- public string getHttpPort()
- public void setHttpPort()
- public string getHttpsPort()
- public void setHttpsPort()
- public string getQueryString()
- public void setQueryString()
- public array getParameters()
- public Route setParameters()
- public mixed getParameter()
- public Boolean hasParameter()
- public void setParameter()
Members
private
- $baseUrl
- $host
- $httpPort
- $httpsPort
- $method
- $parameters — array
- $pathInfo
- $queryString
- $scheme
Methods
public
- __construct() — Constructor.
- fromRequest()
- getBaseUrl() — Gets the base URL.
- getHost() — Gets the HTTP host.
- getHttpPort() — Gets the HTTP port.
- getHttpsPort() — Gets the HTTPS port.
- getMethod() — Gets the HTTP method.
- getParameter() — Gets a parameter value.
- getParameters() — Returns the parameters.
- getPathInfo() — Gets the path info.
- getQueryString() — Gets the query string.
- getScheme() — Gets the HTTP scheme.
- hasParameter() — Checks if a parameter value is set for the given parameter.
- setBaseUrl() — Sets the base URL.
- setHost() — Sets the HTTP host.
- setHttpPort() — Sets the HTTP port.
- setHttpsPort() — Sets the HTTPS port.
- setMethod() — Sets the HTTP method.
- setParameter() — Sets a parameter value.
- setParameters() — Sets the parameters.
- setPathInfo() — Sets the path info.
- setQueryString() — Sets the query string.
- setScheme() — Sets the HTTP scheme.