// Launch the hub main routine here
$this->getControllerInstance()->handleRequest($requestInstance, $responseInstance);
- die("STOP\n");
-
- // -------------------------- Hub activation --------------------------
- // Activates the hub by doing some final preparation steps and setting
- // the attribute $hubIsActive to true
- $nodeInstance->activateHub();
-
- // ----------------------------- Main loop ----------------------------
- // This is the main loop. Queried calls should come back here very fast
- // so the whole application runs on nice speed. This while-loop goes
- // until the hub is no longer active.
- while ($nodeInstance->isHubActive()) {
- } // END - while
// -------------------------- Shutdown phase --------------------------
// Shutting down the hub by saying "good bye" to all connected clients
$applicationInstance->getControllerInstance()->executeBootstrapFilters($requestInstance, $responseInstance);
$this->debugOutput('BOOTSTRAP: Bootstrap finished.');
- // Still unfinished:
- $this->partialStub('Unfinished method.');
+ // Get node instance
+ $nodeInstance = Registry::getRegistry()->getInstance('node');
+
+ // Sanity-check on it
+ if (is_null($nodeInstance)) {
+ // Throws a NullPointerException here
+ throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
+ } // END - if
+
+ // -------------------------- Hub activation --------------------------
+ // Activates the hub by doing some final preparation steps and setting
+ // the attribute $hubIsActive to true
+ $nodeInstance->activateHub();
+
+ // ----------------------------- Main loop ----------------------------
+ // This is the main loop. Queried calls should come back here very fast
+ // so the whole application runs on nice speed. This while-loop goes
+ // until the hub is no longer active.
+ while ($nodeInstance->isHubActive()) {
+ } // END - while
}
/**