From: Roland Häder Date: Sat, 19 May 2012 11:22:05 +0000 (+0000) Subject: Used factory instead of direct class X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a1cf52535b79c11339d84b3cfb9df72eaaa47d3e;p=hub.git Used factory instead of direct class --- diff --git a/application/hub/main/package/class_NetworkPackage.php b/application/hub/main/package/class_NetworkPackage.php index dbb598c01..3a5b5caeb 100644 --- a/application/hub/main/package/class_NetworkPackage.php +++ b/application/hub/main/package/class_NetworkPackage.php @@ -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()) {