X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fmxchange%2Fclass_ApplicationHelper.php;h=346a848fd6267a3ce78c4520364467322b3a4294;hb=301d5f44f5a4e8a91d3871874387639fac53d1e4;hp=1728a7475358a168230f6c71ee32f61b6f4e55c9;hpb=5aa5796943ec5287dd9bae9d27219f99ddb7540b;p=mailer.git diff --git a/application/mxchange/class_ApplicationHelper.php b/application/mxchange/class_ApplicationHelper.php index 1728a74753..346a848fd6 100644 --- a/application/mxchange/class_ApplicationHelper.php +++ b/application/mxchange/class_ApplicationHelper.php @@ -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')) { @@ -205,7 +211,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication $commandName = $responseInstance->getDefaultCommand(); // Set it in request - $requestInstance->setRequestElement('page'); + $requestInstance->setRequestElement('page', $commandName); } // END - if // Get a resolver