From fd5598626e163040b19bf8e153d4898a49038b23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 29 May 2017 19:37:08 +0200 Subject: [PATCH 1/1] getResponseInstance is now located in FrameworkBootstrap MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- framework/main/classes/output/class_ | 3 ++- index.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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))) { -- 2.39.2