]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 6 Mar 2018 21:55:16 +0000 (22:55 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 6 Mar 2018 21:55:16 +0000 (22:55 +0100)
- need to invoke $responseInstance->initWebOutputInstance() to initialize the
  web output instance, but not in console responses ... The old-lost code at
  my shipping-company simulator did this.

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 03815a9ec35488489d8006c1f85c41baaa439020..46f7bc3de32d5fc46b9620ae978d71adaa8e1fca 100644 (file)
@@ -54,6 +54,9 @@ 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;
        }
index a2fc7a065b5a34ee367f681aeca2c886ea5a9219..976fe75e2cef8ba104e1dc520ed17c044b6a9cbf 100644 (file)
@@ -54,6 +54,9 @@ 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;
        }