getResponseInstance is now located in FrameworkBootstrap
authorRoland Häder <roland@mxchange.org>
Mon, 29 May 2017 17:37:08 +0000 (19:37 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 29 May 2017 17:37:08 +0000 (19:37 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
framework/main/classes/output/class_
index.php

index 07d1b89..d9699c6 100644 (file)
@@ -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
 
index 61d5347..753e54a 100644 (file)
--- 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))) {