From: Roland Häder Date: Fri, 19 May 2017 01:00:19 +0000 (+0200) Subject: Flipped namespace + added it in object creation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0f343b83df36f035e418b9567a2c52de1aa274b6;p=hub.git Flipped namespace + added it in object creation Signed-off-by: Roland Häder --- diff --git a/application/hub/classes/dht/node/class_NodeDhtFacade.php b/application/hub/classes/dht/node/class_NodeDhtFacade.php index e8f1a2420..201af81d8 100644 --- a/application/hub/classes/dht/node/class_NodeDhtFacade.php +++ b/application/hub/classes/dht/node/class_NodeDhtFacade.php @@ -1,6 +1,6 @@ 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));