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