]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/handler/message-types/announcement/class_NodeMessageAnnouncementHandler.php
Introduced NodeObjectFactory to encapsulate (and ease) a lot calls.
[hub.git] / application / hub / main / handler / message-types / announcement / class_NodeMessageAnnouncementHandler.php
index ebbfe9d00daf192d347cf95d54b28131aa396d43..b313071bbb3548f2427a7c66280ad80c2f11696b 100644 (file)
@@ -90,7 +90,7 @@ class NodeMessageAnnouncementHandler extends BaseMessageHandler implements Handl
         */
        public function handleMessageData (array $messageData, Receivable $packageInstance) {
                // Get node instance
-               $nodeInstance = Registry::getRegistry()->getInstance('node');
+               $nodeInstance = NodeObjectFactory::createNodeInstance();
 
                // Is this node accepting announcements?
                if (!$nodeInstance->isAcceptingAnnouncements()) {