Web output instance added
[mailer.git] / application / mxchange / class_ApplicationHelper.php
index 10bd2be..346a848 100644 (file)
@@ -172,15 +172,21 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
         * @return      void
         */
        public final function entryPoint () {
+               // Get a web output class
+               $outputInstance = ObjectFactory::createObjectByConfiguredName('output_class');
+
+               // Set it in this application
+               $this->setWebOutputInstance($outputInstance);
+
                // Create a new request object
                $requestInstance = ObjectFactory::createObjectByName('HttpRequest');
 
                // Remember request instance here
                $this->setRequestInstance($requestInstance);
 
-               // Default response is HTTP (HTML page) and type is "Web"
-               $response = "http";
-               $responseType = "web";
+               // Default response is HTTP (HTML page) and type is 'Web'
+               $response = 'http';
+               $responseType = 'web';
 
                // Do we have another response?
                if ($requestInstance->isRequestElementSet('request')) {