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() {