This call needs to be moved into BaseHubNode.
authorRoland Haeder <roland@mxchange.org>
Sat, 25 Apr 2015 23:04:03 +0000 (01:04 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 25 Apr 2015 23:04:03 +0000 (01:04 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/filter/node/class_NodeInitializationFilter.php
application/hub/main/nodes/class_BaseHubNode.php

index 3e29095aeea90e0b972c4c3af9cfe381ca5b39dc..f15806bfa3e8ad0007f519164fe55ca388b0266d 100644 (file)
@@ -63,8 +63,7 @@ class NodeInitializationFilter extends BaseNodeFilter implements Filterable {
                        $this->debugBackTrace('[' . __METHOD__ . ':' . __LINE__ . ']:  node mode ' . $nodeMode . ' is invalid.');
                }
 
-               // Set the node instance in registry
-               Registry::getRegistry()->addInstance('node', $nodeInstance);
+               // Debug message
                //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE-INIT-FILTER[' . __METHOD__ . ':' . __LINE__ . ']: Node ' . $nodeMode . ' has been added to registry.');
        }
 }
index f82d4380d9ed3569ea7e5b7272d74e36c0de22b5..6f44a1177c883cddb669c5e4ddd0ac62603fac0f 100644 (file)
@@ -84,6 +84,9 @@ class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria {
                // Set it here
                $this->setCryptoInstance($cryptoInstance);
 
+               // Set the node instance in registry
+               Registry::getRegistry()->addInstance('node', $this);
+
                // Init state which sets the state to 'init'
                $this->initState();
        }