]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/tasks/node/announcement/class_NodeAnnouncementTask.php
Introduced NodeObjectFactory to encapsulate (and ease) a lot calls.
[hub.git] / application / hub / main / tasks / node / announcement / class_NodeAnnouncementTask.php
index 6250208202f6fb3db3414071ae1f35af1c13d855..386439a196632b3bc0617acbf5b57d309fbf61f4 100644 (file)
@@ -63,7 +63,7 @@ class NodeAnnouncementTask extends BaseTask implements Taskable, Visitable {
         */
        public function executeTask () {
                // Get the node instance and announce us
-               Registry::getRegistry()->getInstance('node')->announceToUpperNodes($this);
+               NodeObjectFactory::createNodeInstance()->announceToUpperNodes($this);
        }
 }