@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 PhabricatorConfigModule extends Phobject {
4
5 abstract public function getModuleKey();
6 abstract public function getModuleName();
7 abstract public function renderModuleStatus(AphrontRequest $request);
8
9 final public static function getAllModules() {
10 return id(new PhutilClassMapQuery())
11 ->setAncestorClass(self::class)
12 ->setUniqueMethod('getModuleKey')
13 ->setSortMethod('getModuleName')
14 ->execute();
15 }
16
17}