Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91878929
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
Fri, Nov 15, 09:59
Size
961 B
Mime Type
text/x-php
Expires
Sun, Nov 17, 09:59 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22340917
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'
);
if
(
$uris
)
{
foreach
(
$uris
as
$uri
)
{
$this
->
queueTask
(
'FeedPublisherHTTPWorker'
,
array
(
'key'
=>
$story
->
getChronologicalKey
(),
'uri'
=>
$uri
,
));
}
}
$argv
=
array
(
array
(),
);
// Find and schedule all the enabled Doorkeeper publishers.
// TODO: Use PhutilClassMapQuery?
$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