Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98264680
FeedPublisherWorker.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
Sat, Jan 11, 14:28
Size
883 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 14:28 (2 d)
Engine
blob
Format
Raw Data
Handle
23542803
Attached To
rPH Phabricator
FeedPublisherWorker.php
View Options
<?php
final
class
FeedPublisherWorker
extends
FeedPushWorker
{
protected
function
doWork
()
{
$story
=
$this
->
loadFeedStory
();
$uris
=
PhabricatorEnv
::
getEnvConfig
(
'feed.http-hooks'
);
foreach
(
$uris
as
$uri
)
{
$this
->
queueTask
(
'FeedPublisherHTTPWorker'
,
array
(
'key'
=>
$story
->
getChronologicalKey
(),
'uri'
=>
$uri
,
));
}
$argv
=
array
(
array
(),
);
// Find and schedule all the enabled Doorkeeper publishers.
$doorkeeper_workers
=
id
(
new
PhutilSymbolLoader
())
->
setAncestorClass
(
'DoorkeeperFeedWorker'
)
->
loadObjects
(
$argv
);
foreach
(
$doorkeeper_workers
as
$worker
)
{
if
(!
$worker
->
isEnabled
())
{
continue
;
}
$this
->
queueTask
(
get_class
(
$worker
),
array
(
'key'
=>
$story
->
getChronologicalKey
(),
));
}
}
}
Event Timeline
Log In to Comment