]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/nodes/regular/class_HubRegularNode.php
Rewritten class structure to make it more OOP-friendly (stupid comment, I know)
[hub.git] / application / hub / main / nodes / regular / class_HubRegularNode.php
index fd3dbab98bbafa6854dbfda51377e6508388e273..4c497e6136ffc4a94d31311034f9e4e44362a500 100644 (file)
@@ -45,6 +45,13 @@ class HubRegularNode extends BaseHubNode implements NodeHelper {
                // Set the request instance
                $nodeInstance->setRequestInstance($requestInstance);
 
+               // --------------------- Hub-id acquirement phase ---------------------
+               // Acquire a hub-id. This step generates on first launch a new one and
+               // on any later launches it will restore the hub-id from the database.
+               // A passed 'nickname=xxx' argument will be used to add some
+               // 'personality' to the hub.
+               $nodeInstance->acquireHubId();
+
                // Return the instance
                return $nodeInstance;
        }
@@ -58,9 +65,12 @@ class HubRegularNode extends BaseHubNode implements NodeHelper {
         * @todo        Implement this method
         */
        public function doBootstrapping () {
-               // Call generic (parent) bootstrapping method
+               // Call generic (parent) bootstrapping method first
                parent::doGenericBootstrapping();
-               $this->partialStub("Please implement this method.");
+               $this->partialStub('Please implement this method.');
+
+               // This is the last line: output teaser
+               $this->outputConsoleTeaser();
        }
 }