summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/update
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/update')
-rw-r--r--core/modules/update/src/Hook/UpdateHooks.php8
-rw-r--r--core/modules/update/tests/src/Functional/UpdateSemverContribTestBase.php2
-rw-r--r--core/modules/update/tests/src/Functional/UpdateSemverCoreTestBase.php2
-rw-r--r--core/modules/update/update.compare.inc2
-rw-r--r--core/modules/update/update.fetch.inc8
5 files changed, 3 insertions, 19 deletions
diff --git a/core/modules/update/src/Hook/UpdateHooks.php b/core/modules/update/src/Hook/UpdateHooks.php
index 6c6c57b53e5..6577f7f1fc2 100644
--- a/core/modules/update/src/Hook/UpdateHooks.php
+++ b/core/modules/update/src/Hook/UpdateHooks.php
@@ -78,14 +78,6 @@ class UpdateHooks {
$verbose = TRUE;
break;
}
- // This loadInclude() is to ensure that the install API is available.
- // Since we're loading an include of type 'install', this will also
- // include core/includes/install.inc for us, which is where the
- // REQUIREMENTS* constants are currently defined.
- // @todo Remove this once those constants live in a better place.
- // @see https://www.drupal.org/project/drupal/issues/2909480
- // @see https://www.drupal.org/project/drupal/issues/3410938
- \Drupal::moduleHandler()->loadInclude('update', 'install');
$status = \Drupal::moduleHandler()->invoke('update', 'runtime_requirements');
foreach (['core', 'contrib'] as $report_type) {
$type = 'update_' . $report_type;
diff --git a/core/modules/update/tests/src/Functional/UpdateSemverContribTestBase.php b/core/modules/update/tests/src/Functional/UpdateSemverContribTestBase.php
index 2f5c7c038b9..bd554c0e850 100644
--- a/core/modules/update/tests/src/Functional/UpdateSemverContribTestBase.php
+++ b/core/modules/update/tests/src/Functional/UpdateSemverContribTestBase.php
@@ -10,7 +10,7 @@ namespace Drupal\Tests\update\Functional;
* This wires up the protected data from UpdateSemverTestBase for a contrib
* module with semantic version releases.
*/
-class UpdateSemverContribTestBase extends UpdateSemverTestBase {
+abstract class UpdateSemverContribTestBase extends UpdateSemverTestBase {
/**
* {@inheritdoc}
diff --git a/core/modules/update/tests/src/Functional/UpdateSemverCoreTestBase.php b/core/modules/update/tests/src/Functional/UpdateSemverCoreTestBase.php
index b9d3a46a68e..f336562c479 100644
--- a/core/modules/update/tests/src/Functional/UpdateSemverCoreTestBase.php
+++ b/core/modules/update/tests/src/Functional/UpdateSemverCoreTestBase.php
@@ -10,7 +10,7 @@ namespace Drupal\Tests\update\Functional;
* This wires up the protected data from UpdateSemverTestBase for Drupal core
* with semantic version releases.
*/
-class UpdateSemverCoreTestBase extends UpdateSemverTestBase {
+abstract class UpdateSemverCoreTestBase extends UpdateSemverTestBase {
/**
* {@inheritdoc}
diff --git a/core/modules/update/update.compare.inc b/core/modules/update/update.compare.inc
index 05c6565ce19..800b10d0e50 100644
--- a/core/modules/update/update.compare.inc
+++ b/core/modules/update/update.compare.inc
@@ -32,7 +32,7 @@ function update_process_project_info(&$projects): void {
$info = $project['info'];
if (isset($info['version'])) {
- // Check for development snapshots
+ // Check for development snapshots.
if (preg_match('@(dev|HEAD)@', $info['version'])) {
$install_type = 'dev';
}
diff --git a/core/modules/update/update.fetch.inc b/core/modules/update/update.fetch.inc
index c8e4990d385..12295b97d98 100644
--- a/core/modules/update/update.fetch.inc
+++ b/core/modules/update/update.fetch.inc
@@ -20,14 +20,6 @@ use Drupal\update\UpdateManagerInterface;
#[ProceduralHookScanStop]
function _update_cron_notify(): void {
$update_config = \Drupal::config('update.settings');
- // This loadInclude() is to ensure that the install API is available.
- // Since we're loading an include of type 'install', this will also
- // include core/includes/install.inc for us, which is where the
- // REQUIREMENTS* constants are currently defined.
- // @todo Remove this once those constants live in a better place.
- // @see https://www.drupal.org/project/drupal/issues/2909480
- // @see https://www.drupal.org/project/drupal/issues/3410938
- \Drupal::moduleHandler()->loadInclude('update', 'install');
$status = \Drupal::moduleHandler()->invoke('update', 'runtime_requirements');
$params = [];
$notify_all = ($update_config->get('notification.threshold') == 'all');