public static function DriverSettings::instanceFromSettings in Drupal driver for SQL Server and SQL Azure 8
Builds a DriverSettings instance from the application settings.php file.
Return value
2 calls to DriverSettings::instanceFromSettings()
- Connection::open in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Connection.php - Opens a PDO connection.
- Connection::__construct in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Connection.php - Constructs a Connection object.
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ DriverSettings.php, line 71
Class
- DriverSettings
- Global settings for the driver.
Namespace
Drupal\Driver\Database\sqlsrvCode
public static function instanceFromSettings() {
$configuration = Settings::get('mssql_configuration', array());
$configuration = array_merge(static::$default_driver_settings, $configuration);
return new DriverSettings($configuration);
}