Nope, this way ... :-(
authorRoland Haeder <roland@mxchange.org>
Sat, 18 Apr 2015 10:27:47 +0000 (12:27 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 18 Apr 2015 10:27:47 +0000 (12:27 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/factories/login/class_LoginFactory.php

index 0f27199..63db93d 100644 (file)
@@ -49,17 +49,11 @@ class LoginFactory extends ObjectFactory {
                } else {
                        // Probe on member instance
                        try {
                } else {
                        // Probe on member instance
                        try {
-                               // Get class name
-                               $className = FrameworkConfiguration::getSelfInstance()->getConfigEntry('user_login_class');
-
-                               // Try to instance it
-                               $loginInstance = call_user_func_array(array($className, 'createMemberByRequest'), array($requestInstance));
+                               // Try to instance member login class
+                               $loginInstance = self::createObjectByConfiguredName('user_login_class', array($requestInstance));
                        } catch (UnexpectedGuestAccountException $e) {
                        } catch (UnexpectedGuestAccountException $e) {
-                               // Then try it with guest account
-                               $className = FrameworkConfiguration::getSelfInstance()->getConfigEntry('guest_login_class');
-
-                               // Try to instance it
-                               $loginInstance = call_user_func_array(array($className, 'createGuestByRequest'), array($requestInstance));
+                               // Then try guest login
+                               $loginInstance = self::createObjectByConfiguredName('guest_login_class', array($requestInstance));
                        }
 
                        // Set the instance in registry for further use
                        }
 
                        // Set the instance in registry for further use