Loading core/lib/Drupal/Core/Database/Connection.php +1 −0 Original line number Diff line number Diff line Loading @@ -900,6 +900,7 @@ protected function expandArguments(&$query, &$args) { */ public function getDriverClass($class) { match($class) { 'Install\\Tasks', 'ExceptionHandler', 'Select', 'Insert', Loading core/modules/system/system.install +1 −1 Original line number Diff line number Diff line Loading @@ -555,7 +555,7 @@ function system_requirements($phase) { if ($phase === 'runtime' || $phase === 'update') { // Database information. $class = Database::getConnection()->getDriverClass('Install\\Tasks'); $class = Database::getConnection()->getConnectionOptions()['namespace'] . '\\Install\\Tasks'; /** @var \Drupal\Core\Database\Install\Tasks $tasks */ $tasks = new $class(); $requirements['database_system'] = [ Loading core/tests/Drupal/Tests/Core/Database/ConnectionTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -326,6 +326,7 @@ public function testGetDriverClass($expected, $namespace, $class) { $mock_pdo = $this->createMock('Drupal\Tests\Core\Database\Stub\StubPDO'); $connection = new StubConnection($mock_pdo, ['namespace' => $namespace]); match($class) { 'Install\\Tasks', 'ExceptionHandler', 'Select', 'Insert', Loading Loading
core/lib/Drupal/Core/Database/Connection.php +1 −0 Original line number Diff line number Diff line Loading @@ -900,6 +900,7 @@ protected function expandArguments(&$query, &$args) { */ public function getDriverClass($class) { match($class) { 'Install\\Tasks', 'ExceptionHandler', 'Select', 'Insert', Loading
core/modules/system/system.install +1 −1 Original line number Diff line number Diff line Loading @@ -555,7 +555,7 @@ function system_requirements($phase) { if ($phase === 'runtime' || $phase === 'update') { // Database information. $class = Database::getConnection()->getDriverClass('Install\\Tasks'); $class = Database::getConnection()->getConnectionOptions()['namespace'] . '\\Install\\Tasks'; /** @var \Drupal\Core\Database\Install\Tasks $tasks */ $tasks = new $class(); $requirements['database_system'] = [ Loading
core/tests/Drupal/Tests/Core/Database/ConnectionTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -326,6 +326,7 @@ public function testGetDriverClass($expected, $namespace, $class) { $mock_pdo = $this->createMock('Drupal\Tests\Core\Database\Stub\StubPDO'); $connection = new StubConnection($mock_pdo, ['namespace' => $namespace]); match($class) { 'Install\\Tasks', 'ExceptionHandler', 'Select', 'Insert', Loading