]> git.mxchange.org Git - hub.git/commitdiff
Next wave:
authorRoland Häder <roland@mxchange.org>
Fri, 19 May 2017 16:35:06 +0000 (18:35 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2020 16:50:02 +0000 (18:50 +0200)
- imported HubHelper
- created namespaces

Signed-off-by: Roland Häder <roland@mxchange.org>
application/hub/classes/factories/handler/class_ProtocolHandlerFactory.php
application/hub/classes/package/class_NetworkPackage.php
application/hub/interfaces/helper/connections/class_ConnectionHelper.php
application/hub/interfaces/helper/dht/class_HelpableDht.php
application/hub/interfaces/helper/hub/class_HubHelper.php
application/hub/interfaces/helper/node/class_HelpableNode.php
application/hub/interfaces/package/class_Deliverable.php

index e631b0a14874de9d8542362c9635b83f698b1cef..685d6acd7989dbb4bedce843a732db84fda7e478 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace Hub\Factory\Handler\Protocol;
 
+// Import application-specific stuff
+use Hub\Helper\HubHelper;
+
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Registry\Registry;
@@ -92,7 +95,5 @@ class ProtocolHandlerFactory extends ObjectFactory {
                // Call super factory method
                return self::createProtocolHandlerByType($protocolType);
        }
-}
 
-// [EOF]
-?>
+}
index b245f7b887c8d06f54fd86a726eea6b44f55a608..27bef5da92cd23b22438100b1cbff4d4301552ca 100644 (file)
@@ -9,6 +9,7 @@ use Hub\Factory\Node\NodeObjectFactory;
 use Hub\Generic\BaseHubSystem;
 use Hub\Helper\Connection\BaseConnectionHelper;
 use Hub\Helper\Connection\ConnectionHelper;
+use Hub\Helper\HubHelper;
 use Hub\Network\Receive\Receivable;
 use Hub\Tools\HubTools;
 
@@ -1527,7 +1528,5 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
 
                $this->partialStub('@TODO nodeId=' . $nodeId . ',messageData=' . print_r($messageData, TRUE));
        }
-}
 
-// [EOF]
-?>
+}
index efde02fa3270530210a647141add4f85c889cbac..fbbc630ca99720767b18cd3d2f16f2ef0942294d 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace Hub\Helper\Connection;
 
+// Import application-specific stuff
+use Hub\Helper\HubHelper;
+
 /**
  * An interface for connection helper classes
  *
index 2da84313e7e47839a04819f67c9c804ed5e77dbc..b208b74bfcf145224d8439c2a0ddd61a174ee7e4 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Hub\Helper\Dht;
+
+// Import application-specific stuff
+use Hub\Helper\HubHelper;
+
 /**
  * An interface for hub helper classes
  *
@@ -37,7 +43,5 @@ interface HelpableDht extends HubHelper {
         * @return      void
         */
        function sendPackage (Distributable $dhtInstance);
-}
 
-// [EOF]
-?>
+}
index ff98b0eebfdb2950ef704a22fdd145e1d0eec4e2..f036ed444b1246db03abef826a5c6a31613a865b 100644 (file)
@@ -34,7 +34,5 @@ interface HubHelper extends Helper {
         * @return      $protocolType   Type of protocol to use, usually TCP
         */
        function determineProtocolType ();
-}
 
-// [EOF]
-?>
+}
index 198a7a367fc397378dd341a2bc652461e0abf0b9..5ff2a0a496a45265a43a7dcc84ad84840c395942 100644 (file)
@@ -3,6 +3,7 @@
 namespace Hub\Helper\Node;
 
 // Import application-specific stuff
+use Hub\Helper\HubHelper;
 use Hub\Helper\Node\NodeHelper;
 
 /**
@@ -43,7 +44,5 @@ interface HelpableNode extends HubHelper {
         * @return      void
         */
        function sendPackage (NodeHelper $nodeInstance);
-}
 
-// [EOF]
-?>
+}
index f2065f256c07d396d8e2e9cd68701ec068a6e657..e60d9ac24f74333219a1cb296365a88de0558ac7 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace Hub\Network\Deliver;
 
+// Import application-specific stuff
+use Hub\Helper\HubHelper;
+
 // Import framework stuff
 use CoreFramework\Generic\FrameworkInterface;
 
@@ -107,7 +110,5 @@ interface Deliverable extends FrameworkInterface {
         * @return      void
         */
        function clearAllStacks ();
-}
 
-// [EOF]
-?>
+}