From 9a62415e59d249f13512f41181f4406680e3d5fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 11 Apr 2018 22:34:53 +0200 Subject: [PATCH] Continued: - initWebOutputInstance() cannot be invoked in construction time of response as the application instance is not yet created there, need to invoke initWebOutputInstance() after the application instance has been created MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- framework/main/classes/response/html/class_HtmlResponse.php | 3 --- framework/main/classes/response/image/class_ImageResponse.php | 3 --- 2 files changed, 6 deletions(-) diff --git a/framework/main/classes/response/html/class_HtmlResponse.php b/framework/main/classes/response/html/class_HtmlResponse.php index 46f7bc3d..03815a9e 100644 --- a/framework/main/classes/response/html/class_HtmlResponse.php +++ b/framework/main/classes/response/html/class_HtmlResponse.php @@ -54,9 +54,6 @@ class HtmlResponse extends BaseResponse implements Responseable { // Get a new instance $responseInstance = new HtmlResponse(); - // Init web output instance - $responseInstance->initWebOutputInstance(); - // Return the prepared instance return $responseInstance; } diff --git a/framework/main/classes/response/image/class_ImageResponse.php b/framework/main/classes/response/image/class_ImageResponse.php index 976fe75e..a2fc7a06 100644 --- a/framework/main/classes/response/image/class_ImageResponse.php +++ b/framework/main/classes/response/image/class_ImageResponse.php @@ -54,9 +54,6 @@ class ImageResponse extends BaseResponse implements Responseable { // Get a new instance $responseInstance = new ImageResponse(); - // Init web output instance - $responseInstance->initWebOutputInstance(); - // Return the prepared instance return $responseInstance; } -- 2.39.5