You are here

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

DriverSettings

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\sqlsrv

Code

public static function instanceFromSettings() {
  $configuration = Settings::get('mssql_configuration', array());
  $configuration = array_merge(static::$default_driver_settings, $configuration);
  return new DriverSettings($configuration);
}