* @return void
*/
public final function entryPoint () {
+ // Set this application in registry
+ Registry::getRegistry()->addInstance('app', $this);
+
// Create a new request object
$requestInstance = ObjectFactory::createObjectByName('ConsoleRequest');
// Get a controller instance as well
$this->setControllerInstance($resolverInstance->resolveController());
- // Get the registry
- $registryInstance = Registry::getRegistry();
-
- // Set this application
- $registryInstance->addInstance('app', $this);
-
// Launch the hub main routine here
$this->getControllerInstance()->handleRequest($requestInstance, $responseInstance);