Some cleanups, more usage of ObjectFactory:
[core.git] / inc / database / lib-local.php
index 7ca9530c5ac24f9729b46173438a91b19d21a44d..9ee5507687caccc102e8af41e565d96994eea21a 100644 (file)
@@ -23,9 +23,7 @@
  */
 
 // For testing purposes we use a local file database
-$databaseInstance = LocalFileDatabase::createLocalFileDatabase(
-       FrameworkConfiguration::getInstance()->getConfigEntry('local_db_path')
-);
+$databaseInstance = ObjectFactory::createObjectByConfiguredName('local_file_database_class');
 
 // [EOF]
 ?>