Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F441539
PhabricatorNotificationClient.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
693 B
Referenced Files
None
Subscribers
None
PhabricatorNotificationClient.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment