We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentc483ac6 commit400a0c0Copy full SHA for 400a0c0
components/http_foundation/introduction.rst
@@ -289,8 +289,24 @@ PHP callable that is able to create an instance of your ``Request`` class::
289
290
use Symfony\Component\HttpFoundation\Request;
291
292
- Request::setFactory(function (array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null) {
293
- return SpecialRequest::create($query, $request, $attributes, $cookies, $files, $server, $content);
+ Request::setFactory(function (
+ array $query = array(),
294
+ array $request = array(),
295
+ array $attributes = array(),
296
+ array $cookies = array(),
297
+ array $files = array(),
298
+ array $server = array(),
299
+ $content = null
300
+ ) {
301
+ return SpecialRequest::create(
302
+ $query,
303
+ $request,
304
+ $attributes,
305
+ $cookies,
306
+ $files,
307
+ $server,
308
+ $content
309
+ );
310
});
311
312
$request = Request::createFromGlobals();