$registryKey = strtolower($protocolInstance->getProtocolName()) . '_client';
// Is the key already in registry?
- if (Registry::getRegistry()->instanceExists($registryKey)) {
+ if (GenericRegistry::getRegistry()->instanceExists($registryKey)) {
// Then use that instance
- $clientInstance = Registry::getRegistry()->getInstance($registryKey);
+ $clientInstance = GenericRegistry::getRegistry()->getInstance($registryKey);
// Set socket resource
$clientInstance->setSocketResource($socketResource);
// Return the prepared instance
return $clientInstance;
}
-}
-// [EOF]
-?>
+}