]> git.mxchange.org Git - hub.git/commitdiff
Used factory instead of direct class
authorRoland Häder <roland@mxchange.org>
Sat, 19 May 2012 11:22:05 +0000 (11:22 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 19 May 2012 11:22:05 +0000 (11:22 +0000)
application/hub/main/package/class_NetworkPackage.php

index dbb598c01f0ae6a6c4e0456762586260aa22203f..3a5b5caeb00f2a085f5150f237ceaf33bfa2cd34 100644 (file)
@@ -468,7 +468,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                //* NOISY-DEBUG: */ $this->debugOutput('NETWORK-PACKAGE: Reached line ' . __LINE__ . ' after discoverSocket() has been called.');
 
                // We have to put this socket in our registry, so get an instance
-               $registryInstance = SocketRegistry::createSocketRegistry();
+               $registryInstance = SocketRegistryFactory::createSocketRegistryInstance();
 
                // Get the listener from registry
                $helperInstance = Registry::getRegistry()->getInstance('connection');
@@ -519,7 +519,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                $sentBytes = 0;
 
                // Get the right connection instance
-               $helperInstance = SocketRegistry::createSocketRegistry()->getHandlerInstanceFromPackageData($packageData);
+               $helperInstance = SocketRegistryFactory::createSocketRegistryInstance()->getHandlerInstanceFromPackageData($packageData);
 
                // Is this connection still alive?
                if ($helperInstance->isShuttedDown()) {