From e930ea912e3b87effa489414adc78a7aa3e24fc2 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Tue, 3 Dec 2019 11:02:44 +0100 Subject: [PATCH] *Response::create() method is deprecated --- migration.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration.rst b/migration.rst index 89bfd5c21c1..144fe93d08d 100644 --- a/migration.rst +++ b/migration.rst @@ -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; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy