From 0c0b9644a6a86e338ff3e3ea9cfc3021c2d96785 Mon Sep 17 00:00:00 2001 From: Aviv Eyal Date: Thu, 25 Aug 2022 01:20:55 -0700 Subject: [PATCH] Rebrand: Change Server name Summary: Use the name "Phorge" as the defined platform. Also prepare to rename the core library "phorge" rather then "phabricator" - see next diff. T15006 Test Plan: Deployed change, tooltip for "Config" shows "Configure Phorge" Reviewers: O1 Blessed Committers, speck Reviewed By: O1 Blessed Committers, speck Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew Maniphest Tasks: T15006 Differential Revision: https://we.phorge.it/D25046 --- src/error/PhutilErrorHandler.php | 1 + src/init/lib/PhutilBootloader.php | 4 ++++ src/platform/PlatformSymbols.php | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/error/PhutilErrorHandler.php b/src/error/PhutilErrorHandler.php index 661e3164..63d5b492 100644 --- a/src/error/PhutilErrorHandler.php +++ b/src/error/PhutilErrorHandler.php @@ -460,6 +460,7 @@ final class PhutilErrorHandler extends Phobject { // For these libraries, the effective root is one level up. switch ($library) { case 'arcanist': + case 'phorge': case 'phabricator': $root = dirname($root); break; diff --git a/src/init/lib/PhutilBootloader.php b/src/init/lib/PhutilBootloader.php index ab6bd587..801f19ea 100644 --- a/src/init/lib/PhutilBootloader.php +++ b/src/init/lib/PhutilBootloader.php @@ -191,6 +191,10 @@ final class PhutilBootloader { } public function getLibraryRoot($name) { + if ($name === 'phabricator') { + // TODO warning + $name = 'phorge'; + } if (empty($this->registeredLibraries[$name])) { throw new PhutilBootloaderException( "The phutil library '{$name}' has not been loaded!"); diff --git a/src/platform/PlatformSymbols.php b/src/platform/PlatformSymbols.php index 7533f06b..1b02b775 100644 --- a/src/platform/PlatformSymbols.php +++ b/src/platform/PlatformSymbols.php @@ -8,7 +8,7 @@ final class PlatformSymbols } public static function getPlatformServerName() { - return 'Phabricator'; + return 'Phorge'; } public static function getProductNames() {