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