X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fresponse%2Fclass_BaseResponse.php;h=0c2c8a17e669f0d6028a69b7efcd46e104d3ee84;hp=f7bbb7815bdb2a147b9fcc1b5767e199a0be21dc;hb=b002c5909aa0f781505dde5414964b0f014cde01;hpb=146c8b3c929a1b0ab17d6605e5ae949ac44899c1 diff --git a/framework/main/classes/response/class_BaseResponse.php b/framework/main/classes/response/class_BaseResponse.php index f7bbb781..0c2c8a17 100644 --- a/framework/main/classes/response/class_BaseResponse.php +++ b/framework/main/classes/response/class_BaseResponse.php @@ -1,10 +1,10 @@ , licensed under GNU GPL 2.0. */ -class BaseResponse extends BaseFrameworkSystem { +abstract class BaseResponse extends BaseFrameworkSystem { /** * Response status */ @@ -152,7 +152,7 @@ class BaseResponse extends BaseFrameworkSystem { */ public final function addFatalMessage ($messageId) { // Get application instance - $applicationInstance = Registry::getRegistry()->getInstance('app'); + $applicationInstance = GenericRegistry::getRegistry()->getInstance('app'); // Adds the resolved message id to the fatal message list $this->addFatalMessagePlain($applicationInstance()->getLanguageInstance()->getMessage($messageId)); @@ -180,7 +180,7 @@ class BaseResponse extends BaseFrameworkSystem { */ public function flushBuffer ($force = false) { // Get application instance - $applicationInstance = Registry::getRegistry()->getInstance('app'); + $applicationInstance = GenericRegistry::getRegistry()->getInstance('app'); // Headers already sent? if ((headers_sent()) && ($force === false)) { @@ -243,7 +243,7 @@ class BaseResponse extends BaseFrameworkSystem { */ public function determineDefaultCommand () { // Get application instance - $applicationInstance = Registry::getRegistry()->getInstance('app'); + $applicationInstance = GenericRegistry::getRegistry()->getInstance('app'); // Generate config key $configKey = sprintf('default_%s_%s_command',