class ApacheRequest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/ApacheRequest.php \Symfony\Component\HttpFoundation\ApacheRequest
Request represents an HTTP request from an Apache server.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Symfony\Component\HttpFoundation\Request
- class \Symfony\Component\HttpFoundation\ApacheRequest
Expanded class hierarchy of ApacheRequest
1 file declares its use of ApacheRequest
- ApacheRequestTest.php in vendor/
symfony/ http-foundation/ Tests/ ApacheRequestTest.php
File
- vendor/
symfony/ http-foundation/ ApacheRequest.php, line 19
Namespace
Symfony\Component\HttpFoundationView source
class ApacheRequest extends Request {
/**
* {@inheritdoc}
*/
protected function prepareRequestUri() {
return $this->server
->get('REQUEST_URI');
}
/**
* {@inheritdoc}
*/
protected function prepareBaseUrl() {
$baseUrl = $this->server
->get('SCRIPT_NAME');
if (false === strpos($this->server
->get('REQUEST_URI'), $baseUrl)) {
// assume mod_rewrite
return rtrim(dirname($baseUrl), '/\\');
}
return $baseUrl;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ApacheRequest:: |
protected | function |
Prepares the base URL. Overrides Request:: |
|
ApacheRequest:: |
protected | function |
Overrides Request:: |
|
Request:: |
protected | property | ||
Request:: |
public | property | Custom parameters. | |
Request:: |
protected | property | ||
Request:: |
protected | property | ||
Request:: |
protected | property | ||
Request:: |
protected | property | ||
Request:: |
public | property | Cookies ($_COOKIE). | |
Request:: |
protected | property | ||
Request:: |
protected | property | ||
Request:: |
public | property | Uploaded files ($_FILES). | |
Request:: |
protected | property | ||
Request:: |
protected static | property | ||
Request:: |
public | property | Headers (taken from the $_SERVER). | |
Request:: |
protected static | property | ||
Request:: |
protected | property | ||
Request:: |
protected | property | ||
Request:: |
protected | property | ||
Request:: |
protected | property | ||
Request:: |
public | property | Query string parameters ($_GET). | |
Request:: |
public | property | Request body parameters ($_POST). | |
Request:: |
protected static | property | ||
Request:: |
protected | property | ||
Request:: |
public | property | Server and execution environment parameters ($_SERVER). | |
Request:: |
protected | property | ||
Request:: |
protected static | property | Names for headers that can be trusted when using trusted proxies. | |
Request:: |
protected static | property | ||
Request:: |
protected static | property | ||
Request:: |
protected static | property | ||
Request:: |
public static | function | Creates a Request based on a given URI and configuration. | |
Request:: |
public static | function | Creates a new request with values from PHP's super globals. | |
Request:: |
private static | function | ||
Request:: |
public | function | Clones a request and overrides some of its parameters. | |
Request:: |
public static | function | Enables support for the _method request parameter to determine the intended HTTP method. | |
Request:: |
public | function | Gets a "parameter" value. | |
Request:: |
public | function | Gets a list of content types acceptable by the client browser. | |
Request:: |
public | function | Returns the root path from which this request is executed. | |
Request:: |
public | function | Returns the root URL from which this request is executed. | |
Request:: |
public | function | Gets a list of charsets acceptable by the client browser. | |
Request:: |
public | function | Returns the client IP address. | |
Request:: |
public | function | Returns the client IP addresses. | |
Request:: |
public | function | Returns the request body content. | 1 |
Request:: |
public | function | Gets the format associated with the request. | |
Request:: |
public | function | Get the default locale. | |
Request:: |
public | function | Gets a list of encodings acceptable by the client browser. | |
Request:: |
public | function | Gets the Etags. | |
Request:: |
public | function | Gets the format associated with the mime type. | |
Request:: |
public | function | Returns the host name. | |
Request:: |
public | function | Returns the HTTP host being requested. | |
Request:: |
public static | function | Checks whether support for the _method request parameter is enabled. | |
Request:: |
public | function | Gets a list of languages acceptable by the client browser. | |
Request:: |
public | function | Get the locale. | |
Request:: |
public | function | Gets the request "intended" method. | |
Request:: |
public | function | Gets the mime type associated with the format. | |
Request:: |
public | function | Returns the password. | |
Request:: |
public | function | Returns the path being requested relative to the executed script. | |
Request:: |
public | function | Returns the port on which the request is made. | |
Request:: |
public | function | Returns the preferred language. | |
Request:: |
public | function | Generates the normalized query string for the Request. | |
Request:: |
public | function | Gets the "real" request method. | |
Request:: |
public | function | Returns the path as relative reference from the current Request path. | |
Request:: |
public | function | Gets the request format. | |
Request:: |
public | function | Returns the requested URI (path and query string). | |
Request:: |
public | function | Gets the request's scheme. | |
Request:: |
public | function | Gets the scheme and HTTP host. | |
Request:: |
public | function | Returns current script name. | |
Request:: |
public | function | Gets the Session. | |
Request:: |
public static | function | Gets the trusted proxy header name. | |
Request:: |
public static | function | Gets the list of trusted host patterns. | |
Request:: |
public static | function | Gets the list of trusted proxies. | |
Request:: |
public | function | Generates a normalized URI (URL) for the Request. | |
Request:: |
public | function | Generates a normalized URI for the given path. | |
Request:: |
private | function | ||
Request:: |
public | function | Returns the user. | |
Request:: |
public | function | Gets the user info. | |
Request:: |
public | function | Whether the request contains a Session which was started in one of the previous requests. | |
Request:: |
public | function | Whether the request contains a Session object. | |
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
public | function | Sets the parameters for this request. | |
Request:: |
protected static | function | Initializes HTTP request formats. | |
Request:: |
private | function | ||
Request:: |
public | function | Checks if the request method is of specified type. | |
Request:: |
public | function | Checks whether the method is safe or not. | |
Request:: |
public | function | ||
Request:: |
public | function | Checks whether the request is secure or not. | |
Request:: |
public | function | Returns true if the request is a XMLHttpRequest. | |
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
constant | |||
Request:: |
public static | function | Normalizes a query string. | |
Request:: |
public | function | Overrides the PHP global variables according to this request instance. | |
Request:: |
protected | function | Prepares the base path. | |
Request:: |
protected | function | Prepares the path info. | |
Request:: |
public | function | Sets the default locale. | |
Request:: |
public static | function | Sets a callable able to create a Request instance. | |
Request:: |
public | function | Associates a format with mime types. | |
Request:: |
public | function | Sets the locale. | |
Request:: |
public | function | Sets the request method. | |
Request:: |
private | function | Sets the default PHP locale. | |
Request:: |
public | function | Sets the request format. | |
Request:: |
public | function | Sets the Session. | |
Request:: |
public static | function | Sets the name for trusted headers. | |
Request:: |
public static | function | Sets a list of trusted host patterns. | |
Request:: |
public static | function | Sets a list of trusted proxies. | |
Request:: |
public | function | Clones the current request. | |
Request:: |
public | function | Constructor. | |
Request:: |
public | function | Returns the request as a string. |