@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
1<?php
2
3final class PhabricatorConfigApplication extends PhabricatorApplication {
4
5 public function getBaseURI() {
6 return '/config/';
7 }
8
9 public function getIcon() {
10 return 'fa-sliders';
11 }
12
13 public function isPinnedByDefault(PhabricatorUser $viewer) {
14 return $viewer->getIsAdmin();
15 }
16
17 public function getTitleGlyph() {
18 return "\xE2\x9C\xA8";
19 }
20
21 public function getApplicationGroup() {
22 return self::GROUP_ADMIN;
23 }
24
25 public function canUninstall() {
26 return false;
27 }
28
29 public function getName() {
30 return pht('Config');
31 }
32
33 public function getShortDescription() {
34 return pht('Configure %s', PlatformSymbols::getPlatformServerName());
35 }
36
37 public function getRoutes() {
38 return array(
39 '/config/' => array(
40 '' => 'PhabricatorConfigConsoleController',
41 'edit/(?P<key>[\w\.\-]+)/' => 'PhabricatorConfigEditController',
42 'database/'.
43 '(?:(?P<ref>[^/]+)/'.
44 '(?:(?P<database>[^/]+)/'.
45 '(?:(?P<table>[^/]+)/'.
46 '(?:(?:col/(?P<column>[^/]+)|key/(?P<key>[^/]+))/)?)?)?)?'
47 => 'PhabricatorConfigDatabaseStatusController',
48 'dbissue/' => 'PhabricatorConfigDatabaseIssueController',
49 '(?P<verb>ignore|unignore)/(?P<key>[^/]+)/'
50 => 'PhabricatorConfigIgnoreController',
51 'issue/' => array(
52 '' => 'PhabricatorConfigIssueListController',
53 'panel/' => 'PhabricatorConfigIssuePanelController',
54 '(?P<key>[^/]+)/' => 'PhabricatorConfigIssueViewController',
55 ),
56 'cache/' => array(
57 '' => 'PhabricatorConfigCacheController',
58 'purge/' => 'PhabricatorConfigPurgeCacheController',
59 ),
60 'module/' => array(
61 '(?:(?P<module>[^/]+)/)?' => 'PhabricatorConfigModuleController',
62 ),
63 'cluster/' => array(
64 'databases/' => 'PhabricatorConfigClusterDatabasesController',
65 'notifications/' => 'PhabricatorConfigClusterNotificationsController',
66 'repositories/' => 'PhabricatorConfigClusterRepositoriesController',
67 'search/' => 'PhabricatorConfigClusterSearchController',
68 ),
69 'settings/' => array(
70 '' => 'PhabricatorConfigSettingsListController',
71 '(?P<filter>advanced|all)/'
72 => 'PhabricatorConfigSettingsListController',
73 'history/' => 'PhabricatorConfigSettingsHistoryController',
74 ),
75 ),
76 );
77 }
78
79}