@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 PhabricatorDaemonsApplication extends PhabricatorApplication {
4
5 public function getName() {
6 return pht('Daemons');
7 }
8
9 public function getShortDescription() {
10 return pht('Manage Daemons');
11 }
12
13 public function getBaseURI() {
14 return '/daemon/';
15 }
16
17 public function getTitleGlyph() {
18 return "\xE2\x98\xAF";
19 }
20
21 public function getIcon() {
22 return 'fa-pied-piper-alt';
23 }
24
25 public function getApplicationGroup() {
26 return self::GROUP_ADMIN;
27 }
28
29 public function canUninstall() {
30 return false;
31 }
32
33 public function getEventListeners() {
34 return array(
35 new PhabricatorDaemonEventListener(),
36 );
37 }
38
39 public function getRoutes() {
40 return array(
41 '/daemon/' => array(
42 '' => 'PhabricatorDaemonConsoleController',
43 'task/(?P<id>[1-9]\d*)/' => 'PhabricatorWorkerTaskDetailController',
44 'log/' => array(
45 '' => 'PhabricatorDaemonLogListController',
46 '(?P<id>[1-9]\d*)/' => 'PhabricatorDaemonLogViewController',
47 ),
48 'bulk/' => array(
49 '(?:query/(?P<queryKey>[^/]+)/)?' =>
50 'PhabricatorDaemonBulkJobListController',
51 'monitor/(?P<id>\d+)/' =>
52 'PhabricatorDaemonBulkJobMonitorController',
53 'view/(?P<id>\d+)/' =>
54 'PhabricatorDaemonBulkJobViewController',
55
56 ),
57 ),
58 );
59 }
60
61}