Differential D19050 Diff 45667 src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Show First 20 Lines • Show All 4,284 Lines • ▼ Show 20 Lines | private function queueWebhooks($object, array $xactions) { | ||||
foreach ($call_hooks as $call_hook) { | foreach ($call_hooks as $call_hook) { | ||||
$trigger_phids = idx($webhook_map, $call_hook->getPHID()); | $trigger_phids = idx($webhook_map, $call_hook->getPHID()); | ||||
$request = HeraldWebhookRequest::initializeNewWebhookRequest($call_hook) | $request = HeraldWebhookRequest::initializeNewWebhookRequest($call_hook) | ||||
->setObjectPHID($object->getPHID()) | ->setObjectPHID($object->getPHID()) | ||||
->setTransactionPHIDs(mpull($xactions, 'getPHID')) | ->setTransactionPHIDs(mpull($xactions, 'getPHID')) | ||||
->setTriggerPHIDs($trigger_phids) | ->setTriggerPHIDs($trigger_phids) | ||||
->setRetryMode(HeraldWebhookRequest::RETRY_FOREVER) | |||||
->setIsSilentAction((bool)$this->getIsSilent()) | ->setIsSilentAction((bool)$this->getIsSilent()) | ||||
->setIsSecureAction((bool)$this->getMustEncrypt()) | ->setIsSecureAction((bool)$this->getMustEncrypt()) | ||||
->save(); | ->save(); | ||||
$request->queueCall(); | $request->queueCall(); | ||||
} | } | ||||
} | } | ||||
} | } |