@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 PhabricatorConfigRequestExceptionHandlerModule
4 extends PhabricatorConfigModule {
5
6 public function getModuleKey() {
7 return 'exception-handler';
8 }
9
10 public function getModuleName() {
11 return pht('Exception Handlers');
12 }
13
14 public function renderModuleStatus(AphrontRequest $request) {
15 $viewer = $request->getViewer();
16
17 $handlers = AphrontRequestExceptionHandler::getAllHandlers();
18
19 $rows = array();
20 foreach ($handlers as $key => $handler) {
21 $rows[] = array(
22 $handler->getRequestExceptionHandlerPriority(),
23 $key,
24 $handler->getRequestExceptionHandlerDescription(),
25 );
26 }
27
28 return id(new AphrontTableView($rows))
29 ->setHeaders(
30 array(
31 pht('Priority'),
32 pht('Class'),
33 pht('Description'),
34 ))
35 ->setColumnClasses(
36 array(
37 null,
38 'pri',
39 'wide',
40 ));
41 }
42
43}