function Request::createRequestFromFactory
2 calls to Request::createRequestFromFactory()
- Request::create in vendor/
symfony/ http-foundation/ Request.php - Creates a Request based on a given URI and configuration.
- Request::createFromGlobals in vendor/
symfony/ http-foundation/ Request.php - Creates a new request with values from PHP's super globals.
File
-
vendor/
symfony/ http-foundation/ Request.php, line 1965
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundationCode
private static function createRequestFromFactory(array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], $content = null) : static {
if (self::$requestFactory) {
$request = (self::$requestFactory)($query, $request, $attributes, $cookies, $files, $server, $content);
if (!$request instanceof self) {
throw new \LogicException('The Request factory must return an instance of Symfony\\Component\\HttpFoundation\\Request.');
}
return $request;
}
return new static($query, $request, $attributes, $cookies, $files, $server, $content);
}