Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/config/module/PhabricatorConfigRequestExceptionHandlerModule.php
12256 views
1
<?php
2
3
final 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
}
44
45