diff --git a/CHANGELOG.md b/CHANGELOG.md index 8502b32..2dcfe45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog for Craft CMS Server Check +## 2.1.9 - 2024-09-16 +- Removed check for relying on the default `@web` alias. ([craftcms/cms#15739](https://github.com/craftcms/cms/issues/15739)) + ## 2.1.8 - 2023-09-25 - Reverted “The `@web` alias check now checks `Craft::$aliases;` instead of `Craft::$app->getConfig()->getGeneral()->aliases;`”. diff --git a/server/requirements/RequirementsChecker.php b/server/requirements/RequirementsChecker.php index 8cabe08..628868f 100644 --- a/server/requirements/RequirementsChecker.php +++ b/server/requirements/RequirementsChecker.php @@ -519,28 +519,6 @@ function memoryLimitRequirement() ); } - /** - * @return array - */ - function webAliasRequirement() - { - $aliases = Craft::$app->getConfig()->getGeneral()->aliases; - $memo = 'We recommend explicitly overriding the @web alias.'; - $pass = false; - - if (isset($aliases['web']) || isset($aliases['@web'])) { - $memo = 'Your @web alias is set correctly'; - $pass = true; - } - - return array( - 'name' => 'Ensure @web alias is explicitly overridden', - 'mandatory' => false, - 'condition' => $pass, - 'memo' => $memo, - ); - } - /** * @return array */ diff --git a/server/requirements/requirements.php b/server/requirements/requirements.php index ca8a69f..1514094 100644 --- a/server/requirements/requirements.php +++ b/server/requirements/requirements.php @@ -78,7 +78,6 @@ // Only run this requirement check if we're running in the context of Craft. if (class_exists('Craft')) { $requirements[] = $this->webrootRequirement(); - $requirements[] = $this->webAliasRequirement(); } $requirements = array_merge($requirements, array_filter(array(