- 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>
// 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;
}