- 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>
// Get a new instance
$responseInstance = new HtmlResponse();
+ // Init web output instance
+ $responseInstance->initWebOutputInstance();
+
// Return the prepared instance
return $responseInstance;
}
// Get a new instance
$responseInstance = new ImageResponse();
+ // Init web output instance
+ $responseInstance->initWebOutputInstance();
+
// Return the prepared instance
return $responseInstance;
}