From d8b8d1bfdf97316de61b5a1228f0a42d5b851ebf Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 26 Apr 2015 01:04:03 +0200 Subject: [PATCH] This call needs to be moved into BaseHubNode. Signed-off-by: Roland Haeder --- .../hub/main/filter/node/class_NodeInitializationFilter.php | 3 +-- application/hub/main/nodes/class_BaseHubNode.php | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/application/hub/main/filter/node/class_NodeInitializationFilter.php b/application/hub/main/filter/node/class_NodeInitializationFilter.php index 3e29095ae..f15806bfa 100644 --- a/application/hub/main/filter/node/class_NodeInitializationFilter.php +++ b/application/hub/main/filter/node/class_NodeInitializationFilter.php @@ -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.'); } } diff --git a/application/hub/main/nodes/class_BaseHubNode.php b/application/hub/main/nodes/class_BaseHubNode.php index f82d4380d..6f44a1177 100644 --- a/application/hub/main/nodes/class_BaseHubNode.php +++ b/application/hub/main/nodes/class_BaseHubNode.php @@ -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(); } -- 2.39.5