function db_installer_object

Returns a database installer object.

Parameters

$driver: The name of the driver.

1 call to db_installer_object()
drupal_get_database_types in drupal/core/includes/install.inc
Returns all supported database installer objects that are compiled into PHP.

File

drupal/core/includes/install.inc, line 973
API functions for installing modules and themes.

Code

function db_installer_object($driver) {

  // We cannot use Database::getConnection->getDriverClass() here, because
  // the connection object is not yet functional.
  $task_class = "Drupal\\Core\\Database\\Driver\\{$driver}\\Install\\Tasks";
  return new $task_class();
}