]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/response/image/class_ImageResponse.php
Continued:
[core.git] / framework / main / classes / response / image / class_ImageResponse.php
index fac49db8af74771f065684927cc34bb1148ad9d0..976fe75e2cef8ba104e1dc520ed17c044b6a9cbf 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace CoreFramework\Response;
+namespace Org\Mxchange\CoreFramework\Response;
 
 // Import framework stuff
-use CoreFramework\Registry\Registry;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A class for an image response on an HTTP request
@@ -54,6 +54,9 @@ class ImageResponse extends BaseResponse implements Responseable {
                // Get a new instance
                $responseInstance = new ImageResponse();
 
+               // Init web output instance
+               $responseInstance->initWebOutputInstance();
+
                // Return the prepared instance
                return $responseInstance;
        }
@@ -141,7 +144,7 @@ class ImageResponse extends BaseResponse implements Responseable {
         */
        public function redirectToConfiguredUrl ($configEntry) {
                // Get application instance
-               $applicationInstance = Registry::getRegistry()->getInstance('app');
+               $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
 
                // Is the header not yet sent?
                if (headers_sent()) {