// Is there an instance?
if (is_null($userInstance)) {
+ // Get member class
+ $userClass = $this->getConfigInstance()->readConfig('user_class');
+
// Get a user instance
- $userInstance = Member::createMemberByRequest($requestInstance);
+ $userInstance = call_user_func_array(array($userClass, 'createMemberByRequest'), array($requestInstance));
// Remember this new instance in registry
Registry::getRegistry()->addInstance($userInstance);