]> git.mxchange.org Git - core.git/commitdiff
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 07d1b89b230324807a14da20b7e7954d0bcfb6d4..d9699c6ffebb554277617db39ad69f647e1454cf 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\Output\;
 
 // Import framework stuff
 namespace CoreFramework\Output\;
 
 // Import framework stuff
+use CoreFramework\Bootstrap\FrameworkBootstrap;
 use CoreFramework\Generic\UnsupportedOperationException;
 
 /**
 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
                        // 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
 
                        } // END - if
                } // END - if
 
index 61d5347327fde61f06cd9ded6066776cb11dd523..753e54afef0c09cffd916413bb5bc1b00a937ca9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -91,7 +91,7 @@ final class ApplicationEntryPoint {
                $templateInstance = NULL;
 
                // Get response instance
                $templateInstance = NULL;
 
                // Get response instance
-               $responseInstance = ApplicationHelper::getSelfInstance()->getResponseInstance();
+               $responseInstance = FrameworkBootstrap::getResponseInstance();
 
                // Is the template engine loaded?
                if ((class_exists($tpl)) && (is_object($languageInstance))) {
 
                // Is the template engine loaded?
                if ((class_exists($tpl)) && (is_object($languageInstance))) {