$requestInstance = ObjectFactory::createObjectByName('HttpRequest');
// ... and a new response object
- $responseInstance = HttpResponse::createHttpResponse($this);
+ $responseInstance = ObjectFactory::createObjectByName('HttpResponse', array($this));
+
+ // Remember both in this application
+ $this->setRequestInstance($requestInstance);
+ $this->setResponseInstance($responseInstance);
// Get the parameter from the request
$commandName = $requestInstance->getRequestElement("page");