]> git.mxchange.org Git - hub.git/commitdiff
Flipped namespace + added it in object creation
authorRoland Häder <roland@mxchange.org>
Fri, 19 May 2017 01:00:19 +0000 (03:00 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2020 16:49:59 +0000 (18:49 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
application/hub/classes/dht/node/class_NodeDhtFacade.php
application/hub/classes/factories/node/class_NodeObjectFactory.php

index e8f1a2420cb9a94e06ddf7d0cf00dd84cdb23070..201af81d8dacb580b70b7258edfbb5c2faae1ce0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Own namespace
-namespace Hub\Node\Dht;
+namespace Hub\Dht\Node;
 
 // Import hub-specific stuff
 use Hub\Generic\BaseHubSystem;
index dd15ba15f35e3e4fad3016f2abd67d8b1f664515..727019bc56f59d5b4b243788d936499b56983082 100644 (file)
@@ -71,7 +71,11 @@ class NodeObjectFactory extends ObjectFactory {
                        }
 
                        // Now convert the node-mode in a class name
-                       $className = 'Hub' . $factoryInstance->convertToClassName($nodeMode) . 'Node';
+                       $className = sprintf(
+                               'Hub\Node\%s\Hub%sNode',
+                               $factoryInstance->convertToClassName($nodeMode),
+                               $factoryInstance->convertToClassName($nodeMode)
+                       );
 
                        // Get the node instance
                        $nodeInstance = ObjectFactory::createObjectByName($className, array($requestInstance));