Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99669893
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
Sun, Jan 26, 02:15
Size
883 B
Mime Type
text/x-php
Expires
Tue, Jan 28, 02:15 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23775312
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