Skip to content

Commit 574ef5d

Browse 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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migration.rst

Lines 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)