@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 41 lines 1.3 kB view raw
1<?php 2 3final 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}