Skip to content

Commit

Permalink
Provide backwards compatibility with webhooks queued pre 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
artfulrobot committed Apr 27, 2022
1 parent 3873424 commit 12e623a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CRM/Iparl/Page/IparlWebhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@
*/
class CRM_Iparl_Page_IparlWebhook extends CRM_Core_Page {

/**
* Provided for backwards compatibility for webhook data queued before v 1.6
*
* Not used from 1.6 on.
*/
public static function processQueueItem($queueTaskContext, $data) {
return WebhookProcessor::processQueueItem($queueTaskContext, $data);
}

public function run() {
try {
/** @var array Holds data that we will allow onto the queue. By default, everything. */
Expand Down

0 comments on commit 12e623a

Please sign in to comment.