Skip to content

Commit

Permalink
*Response::create() method is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark committed Dec 3, 2019
1 parent 88e1315 commit e930ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ which script to call and wrap the output in a response class::
{
public function loadLegacyScript(string $requestPath, string $legacyScript)
{
return StreamedResponse::create(
return new StreamedResponse(
function () use ($requestPath, $legacyScript) {
$_SERVER['PHP_SELF'] = $requestPath;
$_SERVER['SCRIPT_NAME'] = $requestPath;
Expand Down

0 comments on commit e930ea9

Please sign in to comment.