@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 50 lines 1.4 kB view raw
1<?php 2 3final class PhabricatorSystemApplication extends PhabricatorApplication { 4 5 public function getName() { 6 return pht('System'); 7 } 8 9 public function canUninstall() { 10 return false; 11 } 12 13 public function isUnlisted() { 14 return true; 15 } 16 17 public function getEventListeners() { 18 return array( 19 new PhabricatorSystemDebugUIEventListener(), 20 new PhorgeSystemDeprecationWarningListener(), 21 ); 22 } 23 24 public function getRoutes() { 25 return array( 26 '/status/' => 'PhabricatorStatusController', 27 '/debug/' => 'PhabricatorDebugController', 28 '/favicon.ico' => 'PhabricatorFaviconController', 29 '/robots.txt' => 'PhabricatorRobotsPlatformController', 30 '/services/' => array( 31 'encoding/' => 'PhabricatorSystemSelectEncodingController', 32 'highlight/' => 'PhabricatorSystemSelectHighlightController', 33 'viewas/' => 'PhabricatorSystemSelectViewAsController', 34 ), 35 '/readonly/' => array( 36 '(?P<reason>[^/]+)/' => 'PhabricatorSystemReadOnlyController', 37 ), 38 '/object/(?P<name>[^/]+)/' => 'PhabricatorSystemObjectController', 39 ); 40 } 41 42 public function getResourceRoutes() { 43 return array( 44 '/status/' => 'PhabricatorStatusController', 45 '/favicon.ico' => 'PhabricatorFaviconController', 46 '/robots.txt' => 'PhabricatorRobotsResourceController', 47 ); 48 } 49 50}