From: Roland Häder Date: Fri, 19 May 2017 01:06:40 +0000 (+0200) Subject: Next wave: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=256027e87d4369a4cbd5155887c92cee8c725ec2;p=hub.git Next wave: - imported BaseHubNode - imported (Node)Helper - created namespaces Signed-off-by: Roland Häder --- diff --git a/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php b/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php index aeae4e35b..b41984318 100644 --- a/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php +++ b/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php @@ -4,6 +4,7 @@ namespace Hub\Database\Frontend\Node\Dht; // Import application-specific stuff use Hub\Factory\Node\NodeObjectFactory; +use Hub\Node\BaseHubNode; // Import framework stuff use CoreFramework\Criteria\Storing\StoreableCriteria; diff --git a/application/hub/classes/database/frontend/node/class_NodeInformationDatabaseWrapper.php b/application/hub/classes/database/frontend/node/class_NodeInformationDatabaseWrapper.php index c105b7c1b..499e2a561 100644 --- a/application/hub/classes/database/frontend/node/class_NodeInformationDatabaseWrapper.php +++ b/application/hub/classes/database/frontend/node/class_NodeInformationDatabaseWrapper.php @@ -2,6 +2,10 @@ // Own namespace namespace Hub\Database\Frontend\Node\Information; +// Import application-specific stuff +use Hub\Node\BaseHubNode; +use Hub\Node\Helper\NodeHelper; + // Import framework stuff use CoreFramework\Factory\ObjectFactory; use CoreFramework\Request\Requestable; diff --git a/application/hub/classes/discovery/node/class_UniversalNodeLocatorDiscovery.php b/application/hub/classes/discovery/node/class_UniversalNodeLocatorDiscovery.php index 5fa1ca71d..dab60ad1e 100644 --- a/application/hub/classes/discovery/node/class_UniversalNodeLocatorDiscovery.php +++ b/application/hub/classes/discovery/node/class_UniversalNodeLocatorDiscovery.php @@ -1,4 +1,10 @@ 0) { socket_close($mainSocket); ?> +// Own namespace +namespace Hub\Listener\; + +// Import application-specific stuff +use Hub\Node\Helper\NodeHelper; + 0) { socket_close($mainSocket); ?> +// Own namespace +namespace Hub\Listener\Tcp\; + +// Import application-specific stuff +use Hub\Node\Helper\NodeHelper; +