]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 11 Apr 2018 20:34:53 +0000 (22:34 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 11 Apr 2018 20:34:53 +0000 (22:34 +0200)
- 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 <roland@mxchange.org>
framework/main/classes/response/html/class_HtmlResponse.php
framework/main/classes/response/image/class_ImageResponse.php

index 46f7bc3de32d5fc46b9620ae978d71adaa8e1fca..03815a9ec35488489d8006c1f85c41baaa439020 100644 (file)
@@ -54,9 +54,6 @@ class HtmlResponse extends BaseResponse implements Responseable {
                // Get a new instance
                $responseInstance = new HtmlResponse();
 
                // Get a new instance
                $responseInstance = new HtmlResponse();
 
-               // Init web output instance
-               $responseInstance->initWebOutputInstance();
-
                // Return the prepared instance
                return $responseInstance;
        }
                // Return the prepared instance
                return $responseInstance;
        }
index 976fe75e2cef8ba104e1dc520ed17c044b6a9cbf..a2fc7a065b5a34ee367f681aeca2c886ea5a9219 100644 (file)
@@ -54,9 +54,6 @@ class ImageResponse extends BaseResponse implements Responseable {
                // Get a new instance
                $responseInstance = new ImageResponse();
 
                // Get a new instance
                $responseInstance = new ImageResponse();
 
-               // Init web output instance
-               $responseInstance->initWebOutputInstance();
-
                // Return the prepared instance
                return $responseInstance;
        }
                // Return the prepared instance
                return $responseInstance;
        }