]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 9 Dec 2020 01:42:40 +0000 (02:42 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 9 Dec 2020 02:16:18 +0000 (03:16 +0100)
- renamed .htacces to .gitkeep and emptied them
- no self::createObjectByConfiguredName() anymore, only as usual over
  ObjectFactory reference
- ops createProtocolHandlerByType() is not ObjectFactory ...
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
28 files changed:
application/hub/classes/factories/handler/class_ProtocolHandlerFactory.php
application/hub/classes/factories/info/class_ConnectionInfoFactory.php
application/hub/classes/factories/socket/class_SocketFactory.php
application/hub/classes/factories/states/dht/class_DhtStateFactory.php
application/hub/classes/factories/states/peer/class_PeerStateFactory.php
core
data/.gitkeep [new file with mode: 0644]
data/.htaccess [deleted file]
data/stacks/.gitkeep [new file with mode: 0644]
data/stacks/.htaccess [deleted file]
data/url_lists/.gitkeep [new file with mode: 0644]
data/url_lists/.htaccess [deleted file]
db/.gitkeep [new file with mode: 0644]
db/.htaccess [deleted file]
db/cruncher_projects/.gitkeep [new file with mode: 0644]
db/cruncher_projects/.htaccess [deleted file]
db/cruncher_units/.gitkeep [new file with mode: 0644]
db/cruncher_units/.htaccess [deleted file]
db/news/.gitkeep [new file with mode: 0644]
db/news/.htaccess [deleted file]
db/node_data/.gitkeep [new file with mode: 0644]
db/node_data/.htaccess [deleted file]
db/node_dht/.gitkeep [new file with mode: 0644]
db/node_dht/.htaccess [deleted file]
db/node_states/.gitkeep [new file with mode: 0644]
db/node_states/.htaccess [deleted file]
db/peer_states/.gitkeep [new file with mode: 0644]
db/peer_states/.htaccess [deleted file]

index a1fa7260f18aef52a3af4dd9daef17c0c42ec3c9..289aaac6b26b1aeace1f82c30408d3dc3e2acd8b 100644 (file)
@@ -83,7 +83,7 @@ class ProtocolHandlerFactory extends BaseFactory {
                $protocolType = $helperInstance->determineProtocolType();
 
                // Call super factory method
-               return ObjectFactory::createProtocolHandlerByType($protocolType);
+               return self::createProtocolHandlerByType($protocolType);
        }
 
        /**
@@ -97,7 +97,7 @@ class ProtocolHandlerFactory extends BaseFactory {
                $protocolType = ProtocolDiscovery::discoverProtocolByPackageInstance($packageInstance);
 
                // Call super factory method
-               return ObjectFactory::createProtocolHandlerByType($protocolType);
+               return self::createProtocolHandlerByType($protocolType);
        }
 
 }
index 156be16f3b4b752a5a3ed5b018232bd58a7eda20..1a2c7501d325a0fdcc828df2d11cee10c9de562c 100644 (file)
@@ -7,6 +7,7 @@ use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
+use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 
 // Import SPL stuff
@@ -95,7 +96,7 @@ class ConnectionInfoFactory extends BaseFactory {
                } else {
                        // Get the info instance
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-INFO-FACTORY: Creating info instance for type=%s ...', $type));
-                       $infoInstance = self::createObjectByConfiguredName('connection_info_class', array($type));
+                       $infoInstance = ObjectFactory::createObjectByConfiguredName('connection_info_class', array($type));
 
                        // Add it to the registry
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-INFO-FACTORY: Adding key=%s,infoInstance=%s ...', $key, $infoInstance->__toString()));
index 7bac10c43f7b37dfe4454aaaa53376cd30d5d432..b38026eeceb4d00c4ced449666ca779975323406 100644 (file)
@@ -87,7 +87,7 @@ class SocketFactory extends BaseFactory {
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('SOCKET-FACTORY: Using socketResource[%s]=%s from registry.', gettype($socketInstance->getSocketResource()), $socketInstance->getSocketResource()));
                } else {
                        // Invoke inner factory
-                       $socketInstance = self::createObjectByConfiguredName(sprintf('%s_connection_helper_class', $protocolInstance->getProtocolName()), array($packageInstance));
+                       $socketInstance = ObjectFactory::createObjectByConfiguredName(sprintf('%s_connection_helper_class', $protocolInstance->getProtocolName()), array($packageInstance));
 
                        // Register it with the registry
                        GenericRegistry::getRegistry()->addInstance($registryKey, $socketInstance);
@@ -131,7 +131,7 @@ class SocketFactory extends BaseFactory {
                $socketResource = socket_create(AF_UNIX, SOCK_STREAM, 0);
 
                // Get container from it
-               $socketInstance = self::createObjectByConfiguredName('socket_container_class', [
+               $socketInstance = ObjectFactory::createObjectByConfiguredName('socket_container_class', [
                        $socketResource,
                        StorableSocket::SOCKET_PROTOCOL_FILE,
                        $packageInstance,
@@ -270,7 +270,7 @@ class SocketFactory extends BaseFactory {
                $packageInstance = ObjectFactory::createObjectByConfiguredName('package_data_class');
 
                // Create socket instance
-               $socketInstance = self::createObjectByConfiguredName('socket_container_class', [
+               $socketInstance = ObjectFactory::createObjectByConfiguredName('socket_container_class', [
                        $socketResource,
                        StorableSocket::SOCKET_PROTOCOL_TCP,
                        $packageInstance,
@@ -347,7 +347,7 @@ class SocketFactory extends BaseFactory {
                $packageInstance = ObjectFactory::createObjectByConfiguredName('package_data_class');
 
                // Create socket instance
-               $socketInstance = self::createObjectByConfiguredName('socket_container_class', array(
+               $socketInstance = ObjectFactory::createObjectByConfiguredName('socket_container_class', array(
                        $socketResource,
                        StorableSocket::SOCKET_PROTOCOL_UDP,
                        $packageInstance,
@@ -485,7 +485,7 @@ class SocketFactory extends BaseFactory {
                $packageInstance = ObjectFactory::createObjectByConfiguredName('package_data_class');
 
                // Create socket instance
-               $socketInstance = self::createObjectByConfiguredName('socket_container_class', array(
+               $socketInstance = ObjectFactory::createObjectByConfiguredName('socket_container_class', array(
                        $socketResource,
                        $socketProtocol,
                        $packageInstance,
index e100869af15e77c637411dd98421b082a9b89e08..24d508db4deba88e974c7d35d80825ef4b033634 100644 (file)
@@ -62,7 +62,7 @@ class DhtStateFactory extends BaseFactory {
                }
 
                // Get a class from that configuration entry
-               $stateInstance = self::createObjectByConfiguredName('dht_' . $stateName . '_state_class', array($dhtInstance));
+               $stateInstance = ObjectFactory::createObjectByConfiguredName('dht_' . $stateName . '_state_class', array($dhtInstance));
 
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('DHT-STATE-FACTORY: DHT state has changed from ' . $dhtInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
index 8d5ae6ac1d2651c8ff9ae7c02aeb26bbc5f59be6..88a14a455cae30df5fdd9c3c9134e5df4b29ecf5 100644 (file)
@@ -63,7 +63,7 @@ class PeerStateFactory extends BaseFactory {
                // Is the instance null?
                if (is_null(self::$tableInstance)) {
                        // Get a new one
-                       self::$tableInstance = self::createObjectByConfiguredName('peer_state_lookup_db_frontend_class');
+                       self::$tableInstance = ObjectFactory::createObjectByConfiguredName('peer_state_lookup_db_frontend_class');
                }
 
                // Return it
diff --git a/core b/core
index da760e51cadd942ec2f28fc7ceaf3b2ccaf65f47..64adf2e0b8dc0f38717df467fe7a64c2ed39f32c 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit da760e51cadd942ec2f28fc7ceaf3b2ccaf65f47
+Subproject commit 64adf2e0b8dc0f38717df467fe7a64c2ed39f32c
diff --git a/data/.gitkeep b/data/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/data/.htaccess b/data/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/data/stacks/.gitkeep b/data/stacks/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/data/stacks/.htaccess b/data/stacks/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/data/url_lists/.gitkeep b/data/url_lists/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/data/url_lists/.htaccess b/data/url_lists/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/.gitkeep b/db/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/db/.htaccess b/db/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/cruncher_projects/.gitkeep b/db/cruncher_projects/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/db/cruncher_projects/.htaccess b/db/cruncher_projects/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/cruncher_units/.gitkeep b/db/cruncher_units/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/db/cruncher_units/.htaccess b/db/cruncher_units/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/news/.gitkeep b/db/news/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/db/news/.htaccess b/db/news/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/node_data/.gitkeep b/db/node_data/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/db/node_data/.htaccess b/db/node_data/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/node_dht/.gitkeep b/db/node_dht/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/db/node_dht/.htaccess b/db/node_dht/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/node_states/.gitkeep b/db/node_states/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/db/node_states/.htaccess b/db/node_states/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/db/peer_states/.gitkeep b/db/peer_states/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/db/peer_states/.htaccess b/db/peer_states/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all