diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index c6d3e950c3..99b3f9bf73 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -10,7 +10,7 @@ use Drupal\Component\Utility\SafeMarkup; use Drupal\Component\Utility\Unicode; use Drupal\Core\Config\BootstrapConfigStorageFactory; -use Drupal\Core\Php; +use Drupal\Core\Requirements; use Drupal\Core\Logger\RfcLogLevel; use Drupal\Core\Test\TestDatabase; use Drupal\Core\Session\AccountInterface; @@ -22,9 +22,9 @@ * Minimum supported version of PHP. * * @deprecated in Drupal 8.5.0, will be removed before Drupal 9.0.0. Use - * \Drupal\Core\Php::DRUPAL_MINIMUM_PHP instead. + * \Drupal\Core\Requirements::DRUPAL_MINIMUM_PHP instead. */ -const DRUPAL_MINIMUM_PHP = Php::DRUPAL_MINIMUM_PHP; +const DRUPAL_MINIMUM_PHP = Requirements::DRUPAL_MINIMUM_PHP; /** * Minimum recommended value of PHP memory_limit. @@ -34,9 +34,9 @@ * 40M is the target for the Standard installation profile. * * @deprecated in Drupal 8.5.0, will be removed before Drupal 9.0.0. Use - * \Drupal\Core\Php::DRUPAL_MINIMUM_PHP_MEMORY_LIMIT instead. + * \Drupal\Core\Requirements::DRUPAL_MINIMUM_PHP_MEMORY_LIMIT instead. */ -const DRUPAL_MINIMUM_PHP_MEMORY_LIMIT = Php::DRUPAL_MINIMUM_PHP_MEMORY_LIMIT; +const DRUPAL_MINIMUM_PHP_MEMORY_LIMIT = Requirements::DRUPAL_MINIMUM_PHP_MEMORY_LIMIT; /** * Error reporting level: display no errors. @@ -108,9 +108,9 @@ * @see http://php.net/manual/language.functions.php * * @deprecated in Drupal 8.5.0, will be removed before Drupal 9.0.0. Use - * \Drupal\Core\Php::DRUPAL_PHP_FUNCTION_PATTERN instead. + * \Drupal\Core\Requirements::DRUPAL_PHP_FUNCTION_PATTERN instead. */ -const DRUPAL_PHP_FUNCTION_PATTERN = Php::DRUPAL_PHP_FUNCTION_PATTERN; +const DRUPAL_PHP_FUNCTION_PATTERN = Requirements::DRUPAL_PHP_FUNCTION_PATTERN; /** * $config_directories key for active directory. diff --git a/core/lib/Drupal/Core/Extension/ThemeHandler.php b/core/lib/Drupal/Core/Extension/ThemeHandler.php index 5e6ce466ed..00d0bef90f 100644 --- a/core/lib/Drupal/Core/Extension/ThemeHandler.php +++ b/core/lib/Drupal/Core/Extension/ThemeHandler.php @@ -3,7 +3,7 @@ namespace Drupal\Core\Extension; use Drupal\Core\Config\ConfigFactoryInterface; -use Drupal\Core\Php; +use Drupal\Core\Requirements; use Drupal\Core\State\StateInterface; /** @@ -277,7 +277,7 @@ public function rebuildThemeData() { 'description' => '', 'features' => $this->defaultFeatures, 'screenshot' => 'screenshot.png', - 'php' => Php::DRUPAL_MINIMUM_PHP, + 'php' => Requirements::DRUPAL_MINIMUM_PHP, 'libraries' => [], ]; diff --git a/core/lib/Drupal/Core/Php.php b/core/lib/Drupal/Core/Requirements.php similarity index 97% rename from core/lib/Drupal/Core/Php.php rename to core/lib/Drupal/Core/Requirements.php index 4d9b62694d..8bb9162600 100644 --- a/core/lib/Drupal/Core/Php.php +++ b/core/lib/Drupal/Core/Requirements.php @@ -5,7 +5,7 @@ /** * Defines PHP-related constants for use with Drupal. */ -class Php { +class Requirements { /** * Minimum supported version of PHP.