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

Appearance settings

Commit 574ef5d

Browse filesBrowse files
committed
minor #12748 *Response::create() method is deprecated (OskarStark)
This PR was merged into the 4.3 branch. Discussion ---------- *Response::create() method is deprecated @fabpot deprecated `*Response::create()` methods in symfony/symfony#34771 I think we can use `__construct` from the lowest version on (no occurences in `3.4`, so `4.3`) from now! No need to mention the deprecation itself in the docs IMHO Thats why I target `4.3` Commits ------- e930ea9 *Response::create() method is deprecated
2 parents 0551609 + e930ea9 commit 574ef5d
Copy full SHA for 574ef5d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎migration.rst

Copy file name to clipboardExpand all lines: migration.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ which script to call and wrap the output in a response class::
433433
{
434434
public function loadLegacyScript(string $requestPath, string $legacyScript)
435435
{
436-
return StreamedResponse::create(
436+
return new StreamedResponse(
437437
function () use ($requestPath, $legacyScript) {
438438
$_SERVER['PHP_SELF'] = $requestPath;
439439
$_SERVER['SCRIPT_NAME'] = $requestPath;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.