API Use injector to create database class

This commit is contained in:
Marcus Nyeholt 2013-12-05 12:21:17 +11:00
parent 9912410e7b
commit b8f4576647

View File

@ -171,7 +171,7 @@ class DB {
self::$connection_attempted = true;
$dbClass = $databaseConfig['type'];
$conn = new $dbClass($databaseConfig);
$conn = Injector::inst()->create($dbClass, $databaseConfig);
self::setConn($conn, $label);