From 0f343b83df36f035e418b9567a2c52de1aa274b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 19 May 2017 03:00:19 +0200 Subject: [PATCH] Flipped namespace + added it in object creation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- application/hub/classes/dht/node/class_NodeDhtFacade.php | 2 +- .../hub/classes/factories/node/class_NodeObjectFactory.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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)); -- 2.39.5