Skip to content

Commit 400a0c0

Browse files
committed
Minimize horizontal scrolling in code block to improve readability
1 parent c483ac6 commit 400a0c0

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

components/http_foundation/introduction.rst

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,24 @@ PHP callable that is able to create an instance of your ``Request`` class::
289289

290290
use Symfony\Component\HttpFoundation\Request;
291291

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);
292+
Request::setFactory(function (
293+
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+
);
294310
});
295311

296312
$request = Request::createFromGlobals();

0 commit comments

Comments
 (0)