From: Roland Häder Date: Mon, 29 May 2017 17:37:08 +0000 (+0200) Subject: getResponseInstance is now located in FrameworkBootstrap X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fd5598626e163040b19bf8e153d4898a49038b23;p=core.git getResponseInstance is now located in FrameworkBootstrap Signed-off-by: Roland Häder --- diff --git a/framework/main/classes/output/class_ b/framework/main/classes/output/class_ index 07d1b89b..d9699c6f 100644 --- a/framework/main/classes/output/class_ +++ b/framework/main/classes/output/class_ @@ -3,6 +3,7 @@ namespace CoreFramework\Output\; // Import framework stuff +use CoreFramework\Bootstrap\FrameworkBootstrap; use CoreFramework\Generic\UnsupportedOperationException; /** @@ -61,7 +62,7 @@ class ???Output extends BaseOutput implements OutputStreamer, Registerable { // Set the content type if (!empty($contentType)) { // Set the header - $applicationInstance->getResponseInstance()->addHeader('Content-type', $contentType); + FrameworkBootstrap::getResponseInstance()->addHeader('Content-type', $contentType); } // END - if } // END - if diff --git a/index.php b/index.php index 61d53473..753e54af 100644 --- a/index.php +++ b/index.php @@ -91,7 +91,7 @@ final class ApplicationEntryPoint { $templateInstance = NULL; // Get response instance - $responseInstance = ApplicationHelper::getSelfInstance()->getResponseInstance(); + $responseInstance = FrameworkBootstrap::getResponseInstance(); // Is the template engine loaded? if ((class_exists($tpl)) && (is_object($languageInstance))) {