Registry::getRegistry()->addInstance('app', $this);
// Default response is console
- $response = $this->getResponseTypeFromSystem();
- $responseType = $this->getResponseTypeFromSystem();
+ $response = self::getResponseTypeFromSystem();
+ $responseType = self::getResponseTypeFromSystem();
// Create a new request object
$requestInstance = ObjectFactory::createObjectByName($this->convertToClassName($response) . 'Request');
$this->getControllerInstance()->handleRequest($requestInstance, $responseInstance);
// -------------------------- Shutdown phase --------------------------
- // @TODO $this->getControllerInstance()->executeShutdownFilters($requestInstance, $responseInstance);
+ $this->getControllerInstance()->executeShutdownFilters($requestInstance, $responseInstance);
}
/**
// Get config instance
$cfg = FrameworkConfiguration::getSelfInstance();
-// Initialize output system
-require($cfg->getConfigEntry('base_path') . 'inc/output.php');
+// Initialize output system, you can use any class that expands BaseFrameworkSystem
+ApplicationHelper::createDebugInstance('ApplicationHelper');
// This application needs a database connection then we have to simply include
// the inc/database.php script