Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb7ac326

Browse files
committed
minorsymfony#3557 Minimize horizontal scrolling in code block to improve readability (ifdattic)
This PR was merged into the 2.4 branch.Discussion----------Minimize horizontal scrolling in code block to improve readability| Q | A| ------------- | ---| Doc fix? | yes| New docs? | no| Applies to | 2.4| Fixed tickets |Commits-------400a0c0 Minimize horizontal scrolling in code block to improve readability
2 parentsdce2e23 +400a0c0 commitb7ac326

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)

[8]ページ先頭

©2009-2025 Movatter.jp