Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300673

Provide a better way to get driver name and database type

$
0
0

Problem/Motivation

We have

  • \Drupal\Core\Database\Install\Tasks::$pdoDriver
  • \Drupal\Core\Database\Connection::databaseType()
  • \Drupal\Core\Database\Connection::driver()

And it's not super clear how they relate to each other and that \Drupal\Core\Database\Install\Tasks::$pdoDriver and \Drupal\Core\Database\Connection::databaseType() is the same thing.

Proposed resolution

It would be helpful if the methods were static so they can be used prior to constructing the connection and we don't have to keep \Drupal\Core\Database\Install\Tasks::$pdoDriver and \Drupal\Core\Database\Connection::databaseType() in sync.

Remaining tasks

User interface changes

None

API changes

tbd - additions only and deprecations only

Data model changes

None

Release notes snippet

@todo


Viewing all articles
Browse latest Browse all 300673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>