@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 PhabricatorConduitApplication extends PhabricatorApplication {
4
5 public function getBaseURI() {
6 return '/conduit/';
7 }
8
9 public function getIcon() {
10 return 'fa-tty';
11 }
12
13 public function canUninstall() {
14 return false;
15 }
16
17 public function getHelpDocumentationArticles(PhabricatorUser $viewer) {
18 return array(
19 array(
20 'name' => pht('Conduit API Overview'),
21 'href' => PhabricatorEnv::getDoclink('Conduit API Overview'),
22 ),
23 );
24 }
25
26 public function getName() {
27 return pht('Conduit');
28 }
29
30 public function getShortDescription() {
31 return pht('Developer API');
32 }
33
34 public function getTitleGlyph() {
35 return "\xE2\x87\xB5";
36 }
37
38 public function getApplicationGroup() {
39 return self::GROUP_DEVELOPER;
40 }
41
42 public function getApplicationOrder() {
43 return 0.100;
44 }
45
46 public function getRoutes() {
47 return array(
48 '/conduit/' => array(
49 $this->getQueryRoutePattern() => 'PhabricatorConduitListController',
50 'method/(?P<method>[^/]+)/' => 'PhabricatorConduitConsoleController',
51 'log/' => array(
52 $this->getQueryRoutePattern() =>
53 'PhabricatorConduitLogController',
54 'view/(?P<view>[^/]+)/' => 'PhabricatorConduitLogController',
55 ),
56 'token/' => array(
57 '' => 'PhabricatorConduitTokenController',
58 'edit/(?:(?P<id>\d+)/)?' =>
59 'PhabricatorConduitTokenEditController',
60 'terminate/(?:(?P<id>\d+)/)?' =>
61 'PhabricatorConduitTokenTerminateController',
62 ),
63 'login/' => 'PhabricatorConduitTokenHandshakeController',
64 ),
65 '/api/(?P<method>[^/]+)' => 'PhabricatorConduitAPIController',
66 );
67 }
68
69}