class Request
Same name in this branch
- 11.1.x vendor/composer/composer/src/Composer/DependencyResolver/Request.php \Composer\DependencyResolver\Request
- 11.1.x vendor/guzzlehttp/psr7/src/Request.php \GuzzleHttp\Psr7\Request
- 11.1.x vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Symfony\Component\BrowserKit\Request
Expanded class hierarchy of Request
1 file declares its use of Request
- HttpKernelBrowser.php in vendor/
symfony/ http-kernel/ HttpKernelBrowser.php
9 string references to 'Request'
- CompiledUrlMatcherDumper::compileRoute in vendor/
symfony/ routing/ Matcher/ Dumper/ CompiledUrlMatcherDumper.php - Compiles a single Route to PHP code used to match it against the path info.
- FileProfilerStorage::createProfileFromData in vendor/
symfony/ http-kernel/ Profiler/ FileProfilerStorage.php - FileProfilerStorage::find in vendor/
symfony/ http-kernel/ Profiler/ FileProfilerStorage.php - Finds profiler tokens for the given criteria.
- FileProfilerStorage::write in vendor/
symfony/ http-kernel/ Profiler/ FileProfilerStorage.php - GetRequestDataSniff::process in vendor/
drupal/ coder/ coder_sniffer/ DrupalPractice/ Sniffs/ Variables/ GetRequestDataSniff.php - Processes this test, when one of its tokens is encountered.
File
-
vendor/
symfony/ browser-kit/ Request.php, line 17
Namespace
Symfony\Component\BrowserKitView source
class Request {
/**
* @param string $uri The request URI
* @param string $method The HTTP method request
* @param array $parameters The request parameters
* @param array $files An array of uploaded files
* @param array $cookies An array of cookies
* @param array $server An array of server parameters
* @param string|null $content The raw body data
*/
public function __construct(string $uri, string $method, array $parameters = [], array $files = [], array $cookies = [], array $server = [], ?string $content = null) {
array_walk_recursive($parameters, static function (&$value) {
$value = (string) $value;
});
$this->parameters = $parameters;
}
/**
* Gets the request URI.
*/
public function getUri() : string {
return $this->uri;
}
/**
* Gets the request HTTP method.
*/
public function getMethod() : string {
return $this->method;
}
/**
* Gets the request parameters.
*/
public function getParameters() : array {
return $this->parameters;
}
/**
* Gets the request server files.
*/
public function getFiles() : array {
return $this->files;
}
/**
* Gets the request cookies.
*/
public function getCookies() : array {
return $this->cookies;
}
/**
* Gets the request server parameters.
*/
public function getServer() : array {
return $this->server;
}
/**
* Gets the request raw body data.
*/
public function getContent() : ?string {
return $this->content;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Request::getContent | public | function | Gets the request raw body data. |
Request::getCookies | public | function | Gets the request cookies. |
Request::getFiles | public | function | Gets the request server files. |
Request::getMethod | public | function | Gets the request HTTP method. |
Request::getParameters | public | function | Gets the request parameters. |
Request::getServer | public | function | Gets the request server parameters. |
Request::getUri | public | function | Gets the request URI. |
Request::__construct | public | function |