$protocolType = $helperInstance->determineProtocolType();
// Call super factory method
- return ObjectFactory::createProtocolHandlerByType($protocolType);
+ return self::createProtocolHandlerByType($protocolType);
}
/**
$protocolType = ProtocolDiscovery::discoverProtocolByPackageInstance($packageInstance);
// Call super factory method
- return ObjectFactory::createProtocolHandlerByType($protocolType);
+ return self::createProtocolHandlerByType($protocolType);
}
}
// 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
} 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()));
/* 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);
$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,
$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,
$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,
$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,