diff --git a/core/includes/install.inc b/core/includes/install.inc index 5c5eaf2..21f75fb 100644 --- a/core/includes/install.inc +++ b/core/includes/install.inc @@ -143,10 +143,14 @@ function drupal_install_profile_distribution_version() { * @return * An array of database types compiled into PHP. * - * @deprecated in Drupal 8.5.x, will be removed before Drupal 9.0.x. Use - * \Drupal\Core\Database\DatabaseDriverDiscovery component. + * @deprecated in Drupal 8.5.0, will be removed before Drupal 9.0.0. Use + * \Drupal\Core\Database\DatabaseDriverDiscovery::detectDatabaseTypes + * instead. + * + * @see https://www.drupal.org/node/2896416 */ function drupal_detect_database_types() { + @trigger_error('drupal_detect_database_types() is deprecated in Drupal 8.5.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Database\DatabaseDriverDiscovery::detectDatabaseTypes instead. See https://www.drupal.org/node/2896416.', E_USER_DEPRECATED); $discovery = new DatabaseDriverDiscovery(); return $discovery->detectDatabaseTypes(); } @@ -157,10 +161,13 @@ function drupal_detect_database_types() { * @return \Drupal\Core\Database\Install\Tasks[] * An array of available database driver installer objects. * - * @deprecated in Drupal 8.5.x, will be removed before Drupal 9.0.x. Use - * \Drupal\Core\Database\DatabaseDriverDiscovery component. + * @deprecated in Drupal 8.5.0, will be removed before Drupal 9.0.0. Use + * \Drupal\Core\Database\DatabaseDriverDiscovery::getDatabaseTypes instead. + * + * @see https://www.drupal.org/node/2896416 */ function drupal_get_database_types() { + @trigger_error('drupal_get_database_types() is deprecated in Drupal 8.5.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Database\DatabaseDriverDiscovery::getDatabaseTypes instead. See https://www.drupal.org/node/2896416.', E_USER_DEPRECATED); $discovery = new DatabaseDriverDiscovery(); return $discovery->getDatabaseTypes(); } @@ -1083,10 +1090,13 @@ function install_profile_info($profile, $langcode = 'en') { * @return \Drupal\Core\Database\Install\Tasks * A class defining the requirements and tasks for installing the database. * - * @deprecated in Drupal 8.5.x, will be removed before Drupal 9.0.x. Use - * \Drupal\Core\Database\DatabaseDriverDiscovery component. + * @deprecated in Drupal 8.5.0, will be removed before Drupal 9.0.0. Use + * \Drupal\Core\Database\DatabaseDriverDiscovery::getInstallerObject instead. + * + * @see https://www.drupal.org/node/2896416 */ function db_installer_object($driver) { + @trigger_error('drupal_get_database_types() is deprecated in Drupal 8.5.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Database\DatabaseDriverDiscovery::getInstallerObject instead. See https://www.drupal.org/node/2896416.', E_USER_DEPRECATED); $discovery = new DatabaseDriverDiscovery(); return $discovery->getInstallerObject($driver); }