Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93545963
PhabricatorFeedConfigOptions.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
Fri, Nov 29, 15:16
Size
2 KB
Mime Type
text/x-php
Expires
Sun, Dec 1, 15:16 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22663352
Attached To
rPH Phabricator
PhabricatorFeedConfigOptions.php
View Options
<?php
final
class
PhabricatorFeedConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
'Feed'
);
}
public
function
getDescription
()
{
return
pht
(
'Feed options.'
);
}
public
function
getFontIcon
()
{
return
'fa-newspaper-o'
;
}
public
function
getOptions
()
{
return
array
(
$this
->
newOption
(
'feed.public'
,
'bool'
,
false
)
->
setLocked
(
true
)
->
setBoolOptions
(
array
(
pht
(
'Allow anyone to view the feed'
),
pht
(
'Require authentication'
),
))
->
setSummary
(
pht
(
'Should the feed be public?'
))
->
setDescription
(
pht
(
"If you set this to true, you can embed Phabricator activity "
.
"feeds in other pages using iframes. These feeds are completely "
.
"public, and a login is not required to view them! This is "
.
"intended for things like open source projects that want to "
.
"expose an activity feed on the project homepage.
\n\n
"
.
"NOTE: You must also set `policy.allow-public` to true for this "
.
"setting to work properly."
)),
$this
->
newOption
(
'feed.http-hooks'
,
'list<string>'
,
array
())
->
setLocked
(
true
)
->
setSummary
(
pht
(
'POST notifications of feed events.'
))
->
setDescription
(
pht
(
"If you set this to a list of http URIs, when a feed story is "
.
"published a task will be created for each uri that posts the "
.
"story data to the uri. Daemons automagically retry failures 100 "
.
"times, waiting
\$
fail_count * 60s between each subsequent "
.
"failure. Be sure to keep the daemon console (/daemon/) open "
.
"while developing and testing your end points. You may need to"
.
"restart your daemons to start sending http requests.
\n\n
"
.
"NOTE: URIs are not validated, the URI must return http status "
.
"200 within 30 seconds, and no permission checks are performed."
)),
);
}
}
Event Timeline
Log In to Comment