Skip to content

Instantly share code, notes, and snippets.

@agileware-fj
agileware-fj / APIWrapper.php
Created July 16, 2020 05:21
Working symfony dispatcher for civicrm api wrapper
<?php
/**
* Implements an API Wrapper to signal the membership creation preHook that
* we're currently inside of a payment transaction.
*/
class CRM_MembershipApproval_APIWrapper {
private static $in_approval = [];
/**
{
"_last_updated": "Thu, 06 Sep 2018 04:59:43 +0000",
"ID": "CF5b8cb3db5e814",
"cf_version": "1.7.2",
"name": "Membership",
"scroll_top": 0,
"success": "Form has been successfully submitted. Thank you.\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t",
"db_support": 1,
"pinned": 0,
"hide_form": 1,