]> git.mxchange.org Git - shipsimu.git/commitdiff
UserDatabaseWrapper is now changeable by config
authorRoland Häder <roland@mxchange.org>
Sun, 8 Jun 2008 17:58:51 +0000 (17:58 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 8 Jun 2008 17:58:51 +0000 (17:58 +0000)
inc/classes/main/user/class_User.php
inc/config.php

index d5a9f98aa8878150901b03abd35e2b6ca8e155c9..68533c26343d6857008ca24a4ee7002f9088baf6 100644 (file)
@@ -150,7 +150,7 @@ class User extends BaseFrameworkSystem implements ManageableUser, Registerable {
                $exists = true;
 
                // Get a UserDatabaseWrapper instance
-               $wrapperInstance = UserDatabaseWrapper::createUserDatabaseWrapper();
+               $wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_db_wrapper');
 
                // Create a search criteria
                $criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria');
@@ -182,7 +182,7 @@ class User extends BaseFrameworkSystem implements ManageableUser, Registerable {
                $exists = true;
 
                // Get a UserDatabaseWrapper instance
-               $wrapperInstance = UserDatabaseWrapper::createUserDatabaseWrapper();
+               $wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_db_wrapper');
 
                // Create a search criteria
                $criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria');
index 4abf5abb02a027efe5fd79b9db06f6faeb56271a..62ccd3f54026eb10679bbf65d02d70dbb3923eac 100644 (file)
@@ -183,6 +183,9 @@ $cfg->setConfigEntry('crypto_heler', "CryptoHelper");
 // CFG: RNG-CLASS
 $cfg->setConfigEntry('rng_class', "RandomNumberGenerator");
 
+// CFG: USER-DB-WRAPPER
+$cfg->setConfigEntry('user_db_wrapper', "UserDatabaseWrapper");
+
 // CFG: MATH-PRIME
 $cfg->setConfigEntry('math_prime', 591623);