From: Roland Häder Date: Wed, 11 Apr 2018 20:34:53 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=9a62415e59d249f13512f41181f4406680e3d5fd 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 Signed-off-by: Roland Häder --- 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; }