From bf6ab854bf1525f7215c75cd05daa727a0744ce7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 19 May 2017 15:28:41 +0200 Subject: [PATCH] Next small wave: - imported NodeInformationDatabaseWrapper - added missing namespace in configuration entry MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../node/class_NodeDistributedHashTableDatabaseWrapper.php | 1 + application/hub/classes/nodes/class_BaseHubNode.php | 1 + .../resolver/protocol/tcp/class_TcpProtocolResolver.php | 1 + application/hub/classes/unl/class_UniversalNodeLocator.php | 3 +++ application/hub/config.php | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php b/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php index 79e850872..bf3c1cb6f 100644 --- a/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php +++ b/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php @@ -3,6 +3,7 @@ namespace Hub\Database\Frontend\Node\Dht; // Import application-specific stuff +use Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper; use Hub\Factory\Node\NodeObjectFactory; use Hub\Node\BaseHubNode; diff --git a/application/hub/classes/nodes/class_BaseHubNode.php b/application/hub/classes/nodes/class_BaseHubNode.php index 3d29d2ab5..b23bf43c5 100644 --- a/application/hub/classes/nodes/class_BaseHubNode.php +++ b/application/hub/classes/nodes/class_BaseHubNode.php @@ -3,6 +3,7 @@ namespace Hub\Node; // Import hub-specific stuff +use Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper; use Hub\Generic\BaseHubSystem; use Hub\Network\Receive\Receivable; use Hub\Tools\HubTools; diff --git a/application/hub/classes/resolver/protocol/tcp/class_TcpProtocolResolver.php b/application/hub/classes/resolver/protocol/tcp/class_TcpProtocolResolver.php index 14898a695..29db7ca0d 100644 --- a/application/hub/classes/resolver/protocol/tcp/class_TcpProtocolResolver.php +++ b/application/hub/classes/resolver/protocol/tcp/class_TcpProtocolResolver.php @@ -3,6 +3,7 @@ namespace Hub\Resolver\Protocol\Tcp; // Import application-specific stuff +use Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper; use Hub\Node\Helper\NodeHelper; // Import framework stuff diff --git a/application/hub/classes/unl/class_UniversalNodeLocator.php b/application/hub/classes/unl/class_UniversalNodeLocator.php index e558353ba..e44d88276 100644 --- a/application/hub/classes/unl/class_UniversalNodeLocator.php +++ b/application/hub/classes/unl/class_UniversalNodeLocator.php @@ -2,6 +2,9 @@ // Own namespace namespace Hub\Locator\Node; +// Import application-specific stuff +use Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper; + // Import framework stuff use CoreFramework\Object\BaseFrameworkSystem; diff --git a/application/hub/config.php b/application/hub/config.php index aa793c813..1b24f2f01 100644 --- a/application/hub/config.php +++ b/application/hub/config.php @@ -52,7 +52,7 @@ $cfg->setConfigEntry('tpl_engine', 'ConsoleOutput'); $cfg->setConfigEntry('output_class', 'DebugConsoleOutput'); // CFG: NODE-INFO-DB-WRAPPER-CLASS -$cfg->setConfigEntry('node_info_db_wrapper_class', 'NodeInformationDatabaseWrapper'); +$cfg->setConfigEntry('node_info_db_wrapper_class', 'Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper'); // CFG: NODE-DHT-DB-WRAPPER-CLASS $cfg->setConfigEntry('node_dht_db_wrapper_class', 'NodeDistributedHashTableDatabaseWrapper'); -- 2.39.5