@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
at upstream/main 49 lines 1.0 kB view raw
1<?php 2 3final class PhabricatorConfigSetupCheckModule 4 extends PhabricatorConfigModule { 5 6 public function getModuleKey() { 7 return 'setup'; 8 } 9 10 public function getModuleName() { 11 return pht('Setup Checks'); 12 } 13 14 public function renderModuleStatus(AphrontRequest $request) { 15 $viewer = $request->getViewer(); 16 17 $checks = PhabricatorSetupCheck::loadAllChecks(); 18 19 $rows = array(); 20 foreach ($checks as $key => $check) { 21 if ($check->isPreflightCheck()) { 22 $icon = id(new PHUIIconView())->setIcon('fa-plane blue'); 23 } else { 24 $icon = id(new PHUIIconView())->setIcon('fa-times grey'); 25 } 26 27 $rows[] = array( 28 $check->getExecutionOrder(), 29 $icon, 30 get_class($check), 31 ); 32 } 33 34 return id(new AphrontTableView($rows)) 35 ->setHeaders( 36 array( 37 pht('Order'), 38 pht('Preflight'), 39 pht('Class'), 40 )) 41 ->setColumnClasses( 42 array( 43 null, 44 null, 45 'pri wide', 46 )); 47 } 48 49}