Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 3 Jul 2018 22:44:35 +0000 (00:44 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 3 Jul 2018 22:44:35 +0000 (00:44 +0200)
- opps, to less unit tests to find this ... :-(

Signed-off-by: Roland Häder <roland@mxchange.org>
framework/main/classes/response/class_BaseResponse.php
framework/main/classes/response/html/class_HtmlResponse.php
framework/main/classes/response/image/class_ImageResponse.php

index 625c1d9..b2e137d 100644 (file)
@@ -155,7 +155,7 @@ abstract class BaseResponse extends BaseFrameworkSystem {
                $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
 
                // Adds the resolved message id to the fatal message list
-               $this->addFatalMessagePlain($applicationInstance()->getLanguageInstance()->getMessage($messageId));
+               $this->addFatalMessagePlain($applicationInstance->getLanguageInstance()->getMessage($messageId));
        }
 
        /**
@@ -225,7 +225,7 @@ abstract class BaseResponse extends BaseFrameworkSystem {
                        $this->getWebOutputInstance()->output($this->responseBody);
                } else {
                        // Display all error messages
-                       $applicationInstance()->handleFatalMessages($this->getGenericArrayKey('fatal_messages', 'generic', 'message'));
+                       $applicationInstance->handleFatalMessages($this->getGenericArrayKey('fatal_messages', 'generic', 'message'));
 
                        // Send the error messages out to the world
                        $this->getWebOutputInstance()->output($this->responseBody);
index 03815a9..f0eb0bb 100644 (file)
@@ -140,7 +140,7 @@ class HtmlResponse extends BaseResponse implements Responseable {
                } // END - if
 
                // Assign application data
-               $this->getTemplateInstance()->assignApplicationData($applicationInstance());
+               $this->getTemplateInstance()->assignApplicationData($applicationInstance);
 
                // Get the url from config
                $url = $this->getConfigInstance()->getConfigEntry($configEntry . '_url');
index a2fc7a0..2ff8003 100644 (file)
@@ -150,7 +150,7 @@ class ImageResponse extends BaseResponse implements Responseable {
                } // END - if
 
                // Assign application data
-               $this->getTemplateInstance()->assignApplicationData($applicationInstance());
+               $this->getTemplateInstance()->assignApplicationData($applicationInstance);
 
                // Get the url from config
                $url = $this->getConfigInstance()->getConfigEntry($configEntry . '_url');