function Connection::__construct
Constructs a Connection object.
Overrides Connection::__construct
File
- 
              core/modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DrivertestMysqlDeprecatedVersion/ Connection.php, line 15 
Class
- Connection
- MySQL test implementation of \Drupal\Core\Database\Connection.
Namespace
Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersionCode
public function __construct(\PDO $connection, array $connection_options = []) {
  // Alias the MySQL classes to avoid having unnecessary copies.
  foreach ([
    'Delete',
    'Insert',
    'Merge',
    'Schema',
    'Upsert',
    'Select',
    'Update',
  ] as $class) {
    class_alias('Drupal\\Core\\Database\\Driver\\mysql\\' . $class, 'Drupal\\driver_test\\Driver\\Database\\DrivertestMysqlDeprecatedVersion\\' . $class);
  }
  parent::__construct($connection, $connection_options);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
