X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=application%2Fmxchange%2Fclass_ApplicationHelper.php;h=538829ba5d27b5d9f6ac6575938ab0cfffbd0179;hp=346a848fd6267a3ce78c4520364467322b3a4294;hb=e4b5d222d7d56fd54ade5fbd0dca83e08522fd45;hpb=301d5f44f5a4e8a91d3871874387639fac53d1e4 diff --git a/application/mxchange/class_ApplicationHelper.php b/application/mxchange/class_ApplicationHelper.php index 346a848fd6..538829ba5d 100644 --- a/application/mxchange/class_ApplicationHelper.php +++ b/application/mxchange/class_ApplicationHelper.php @@ -172,12 +172,6 @@ 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'); @@ -221,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); }