]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/nodes/master/class_HubMasterNode.php
Rewritten class structure to make it more OOP-friendly (stupid comment, I know)
[hub.git] / application / hub / main / nodes / master / class_HubMasterNode.php
index 9f41a0311e70d0120a14905839d824e162f1edd0..5de2a59ddcd889fbede98d03a7339bcfffede0a8 100644 (file)
@@ -45,6 +45,13 @@ class HubMasterNode 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 HubMasterNode 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 should be the last line: output teaser
+               $this->outputConsoleTeaser();
        }
 }