Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/setup/PhabricatorAphlictSetupCheck.php
Show All 31 Lines | try { | ||||
$this->newIssue('aphlict.connect') | $this->newIssue('aphlict.connect') | ||||
->setShortName(pht('Notification Server Down')) | ->setShortName(pht('Notification Server Down')) | ||||
->setName(pht('Unable to Connect to Notification Server')) | ->setName(pht('Unable to Connect to Notification Server')) | ||||
->setMessage($message) | ->setMessage($message) | ||||
->addRelatedPhabricatorConfig('notification.enabled') | ->addRelatedPhabricatorConfig('notification.enabled') | ||||
->addRelatedPhabricatorConfig('notification.server-uri') | ->addRelatedPhabricatorConfig('notification.server-uri') | ||||
->addCommand( | ->addCommand( | ||||
pht( | pht( | ||||
"(To start the server, run this command.)\n". | "(To start the server, run this command.)\n%s", | ||||
"phabricator/ $ ./bin/aphlict start")); | 'phabricator/ $ ./bin/aphlict start')); | ||||
return; | return; | ||||
} | } | ||||
$expect_version = PhabricatorNotificationClient::EXPECT_VERSION; | $expect_version = PhabricatorNotificationClient::EXPECT_VERSION; | ||||
$have_version = idx($status, 'version', 1); | $have_version = idx($status, 'version', 1); | ||||
if ($have_version != $expect_version) { | if ($have_version != $expect_version) { | ||||
$message = pht( | $message = pht( | ||||
Show All 15 Lines |