<?php
// Own namespace
-namespace CoreFramework\Factory\User;
+namespace Org\Mxchange\CoreFramework\Factory\User;
// Import framework stuff
-use CoreFramework\Configuration\FrameworkConfiguration;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
/**
* A factory class for socket registries
*/
public static final function createUserByRequest (Requestable $requestInstance) {
// Get registry instance
- $registryInstance = Registry::getRegistry();
+ $registryInstance = GenericRegistry::getRegistry();
// Do we have an instance in the registry?
if ($registryInstance->instanceExists('user')) {
// Probe on member instance
try {
// Get class name
- $className = FrameworkConfiguration::getSelfInstance()->getConfigEntry('user_class');
+ $className = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('user_class');
// Try to instance it
$userInstance = call_user_func_array(array($className, 'createMemberByRequest'), array($requestInstance));
} catch (UnexpectedGuestAccountException $e) {
// Then try it with guest account
- $className = FrameworkConfiguration::getSelfInstance()->getConfigEntry('guest_class');
+ $className = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('guest_class');
// Try to instance it
$userInstance = call_user_func_array(array($className, 'createGuestByRequest'), array($requestInstance));