@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 51 lines 1.1 kB view raw
1<?php 2 3final class PhabricatorConfigResponse extends AphrontStandaloneHTMLResponse { 4 5 private $view; 6 7 public function setView(PhabricatorSetupIssueView $view) { 8 $this->view = $view; 9 return $this; 10 } 11 12 public function getHTTPResponseCode() { 13 return 500; 14 } 15 16 protected function getResources() { 17 return array( 18 'css/application/config/config-template.css', 19 'css/application/config/setup-issue.css', 20 ); 21 } 22 23 protected function getResponseTitle() { 24 return pht('Setup Error'); 25 } 26 27 protected function getResponseBodyClass() { 28 if (PhabricatorSetupCheck::isInFlight()) { 29 return 'setup-fatal in-flight'; 30 } else { 31 return 'setup-fatal'; 32 } 33 } 34 35 protected function getResponseBody() { 36 $view = $this->view; 37 38 if (PhabricatorSetupCheck::isInFlight()) { 39 return $view->renderInFlight(); 40 } else { 41 return $view->render(); 42 } 43 } 44 45 protected function buildPlainTextResponseString() { 46 return pht( 47 'This install has a fatal setup error, access the web interface '. 48 'to view details and resolve it.'); 49 } 50 51}