Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99367201
PhabricatorAphlictSetupCheck.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jan 23, 21:58
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Jan 25, 21:58 (2 d)
Engine
blob
Format
Raw Data
Handle
23746656
Attached To
rPH Phabricator
PhabricatorAphlictSetupCheck.php
View Options
<?php
final
class
PhabricatorAphlictSetupCheck
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
()
{
try
{
PhabricatorNotificationClient
::
tryAnyConnection
();
}
catch
(
Exception
$ex
)
{
$message
=
pht
(
"Phabricator is configured to use a notification server, but is "
.
"unable to connect to it. You should resolve this issue or disable "
.
"the notification server. It may be helpful to double check your "
.
"configuration or restart the server using the command below.
\n\n
%s"
,
phutil_tag
(
'pre'
,
array
(),
array
(
get_class
(
$ex
),
"
\n
"
,
$ex
->
getMessage
(),
)));
$this
->
newIssue
(
'aphlict.connect'
)
->
setShortName
(
pht
(
'Notification Server Down'
))
->
setName
(
pht
(
'Unable to Connect to Notification Server'
))
->
setMessage
(
$message
)
->
addRelatedPhabricatorConfig
(
'notification.servers'
)
->
addCommand
(
pht
(
"(To start the server, run this command.)
\n
%s"
,
'phabricator/ $ ./bin/aphlict start'
));
return
;
}
}
}
Event Timeline
Log In to Comment