Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/notification/setup/PhabricatorAphlictSetupCheck.php
12256 views
1
<?php
2
3
final class PhabricatorAphlictSetupCheck extends PhabricatorSetupCheck {
4
5
protected function executeChecks() {
6
try {
7
PhabricatorNotificationClient::tryAnyConnection();
8
} catch (Exception $ex) {
9
$message = pht(
10
"This server is configured to use a notification server, but is ".
11
"unable to connect to it. You should resolve this issue or disable ".
12
"the notification server. It may be helpful to double check your ".
13
"configuration or restart the server using the command below.\n\n%s",
14
phutil_tag(
15
'pre',
16
array(),
17
array(
18
get_class($ex),
19
"\n",
20
$ex->getMessage(),
21
)));
22
23
24
$this->newIssue('aphlict.connect')
25
->setShortName(pht('Notification Server Down'))
26
->setName(pht('Unable to Connect to Notification Server'))
27
->setSummary(
28
pht(
29
'This server is configured to use a notification server, '.
30
'but is not able to connect to it.'))
31
->setMessage($message)
32
->addRelatedPhabricatorConfig('notification.servers')
33
->addCommand(
34
pht(
35
"(To start the server, run this command.)\n%s",
36
'$ ./bin/aphlict start'));
37
38
return;
39
}
40
}
41
}
42
43