Page MenuHomePhorge

PhabricatorNotificationClient.php
No OneTemporary

Size
693 B
Referenced Files
None
Subscribers
None

PhabricatorNotificationClient.php

<?php
final class PhabricatorNotificationClient extends Phobject {
public static function tryAnyConnection() {
$servers = PhabricatorNotificationServerRef::getEnabledAdminServers();
if (!$servers) {
return;
}
foreach ($servers as $server) {
$server->loadServerStatus();
return;
}
return;
}
public static function tryToPostMessage(array $data) {
$servers = PhabricatorNotificationServerRef::getEnabledAdminServers();
shuffle($servers);
foreach ($servers as $server) {
try {
$server->postMessage($data);
return;
} catch (Exception $ex) {
// Just ignore any issues here.
}
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, May 4, 7:33 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
64196
Default Alt Text
PhabricatorNotificationClient.php (693 B)

Event Timeline