Remove all "FileHasObject" edge reads and writes
[phabricator.git] / src / applications / config / response / PhabricatorConfigResponse.php
blob3f9a9c86e97b9f558271c929cf0b23e2616019a4
1 <?php
3 final class PhabricatorConfigResponse extends AphrontStandaloneHTMLResponse {
5 private $view;
7 public function setView(PhabricatorSetupIssueView $view) {
8 $this->view = $view;
9 return $this;
12 public function getHTTPResponseCode() {
13 return 500;
16 protected function getResources() {
17 return array(
18 'css/application/config/config-template.css',
19 'css/application/config/setup-issue.css',
23 protected function getResponseTitle() {
24 return pht('Setup Error');
27 protected function getResponseBodyClass() {
28 if (PhabricatorSetupCheck::isInFlight()) {
29 return 'setup-fatal in-flight';
30 } else {
31 return 'setup-fatal';
35 protected function getResponseBody() {
36 $view = $this->view;
38 if (PhabricatorSetupCheck::isInFlight()) {
39 return $view->renderInFlight();
40 } else {
41 return $view->render();
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.');