@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
3abstract class PhabricatorDaemonController
4 extends PhabricatorController {
5
6 public function shouldRequireAdmin() {
7 return true;
8 }
9
10 public function buildApplicationMenu() {
11 return $this->buildSideNavView()->getMenu();
12 }
13
14 protected function buildSideNavView() {
15 $nav = new AphrontSideNavFilterView();
16 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
17
18 $nav->addLabel(pht('Daemons'));
19 $nav->addFilter('/', pht('Console'));
20 $nav->addFilter('log', pht('All Daemons'));
21
22 $nav->addLabel(pht('Bulk Jobs'));
23 $nav->addFilter('bulk', pht('Manage Bulk Jobs'));
24
25 return $nav;
26 }
27
28}