// 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')) {
// 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);
}