Symfony\Component\HttpFoundation\Request::create
Creates a Request based on a given URI and configuration.
The information contained in the URI always take precedence over the other information (server and parameters).
Signature
public function create(string
$uri,
[string
$method = 'GET',
[array
$parameters = null,
[array
$cookies = null,
[array
$files = null,
[array
$server = null,
[string
$content = null]]]]]] )
Parameters
$uri
— string- The URI
$method
— string- The HTTP method
$parameters
— array- The query (GET) or request (POST) parameters
$cookies
— array- The request cookies ($_COOKIE)
$files
— array- The request files ($_FILES)
$server
— array- The server parameters ($_SERVER)
$content
— string- The raw body data
Returns
- Request
- A Request instance