X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=application%2Fmxchange%2Fclass_ApplicationHelper.php;h=538829ba5d27b5d9f6ac6575938ab0cfffbd0179;hp=10bd2be5d1b4fb9db849f795eac68c6815e03786;hb=e4b5d222d7d56fd54ade5fbd0dca83e08522fd45;hpb=a8b58a27acf31c769ddae7e4d6013d74c61c2f5c diff --git a/application/mxchange/class_ApplicationHelper.php b/application/mxchange/class_ApplicationHelper.php index 10bd2be5d1..538829ba5d 100644 --- a/application/mxchange/class_ApplicationHelper.php +++ b/application/mxchange/class_ApplicationHelper.php @@ -178,9 +178,9 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication // 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')) { @@ -215,6 +215,12 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication // Get a controller instance as well $this->controllerInstance = $resolverInstance->resolveController(); + // Get a web output class + $outputInstance = ObjectFactory::createObjectByConfiguredName('output_class', array($this)); + + // Set it in this application + $this->setWebOutputInstance($outputInstance); + // Handle the request $this->controllerInstance->handleRequest($requestInstance, $responseInstance); }