/**
* Class CRM_Core_BAO_RecurringEntity.
*/
-class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity {
+class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity implements \Symfony\Component\EventDispatcher\EventSubscriberInterface {
const RUNNING = 1;
public $schedule = [];
const MODE_NEXT_ALL_ENTITY = 2;
const MODE_ALL_ENTITY_IN_SERIES = 3;
+ public static function getSubscribedEvents() {
+ return [
+ 'civi.dao.postInsert' => 'triggerInsert',
+ 'civi.dao.postUpdate' => 'triggerUpdate',
+ 'civi.dao.postDelete' => 'triggerDelete',
+ ];
+ }
+
/**
* Getter for status.
*
$dispatcher->addListener('hook_civicrm_permissionList', ['CRM_Core_Permission_List', 'findCiviPermissions'], 950);
$dispatcher->addListener('hook_civicrm_permissionList', ['CRM_Core_Permission_List', 'findCmsPermissions'], 925);
- $dispatcher->addListener('civi.dao.postInsert', ['\CRM_Core_BAO_RecurringEntity', 'triggerInsert']);
- $dispatcher->addListener('civi.dao.postUpdate', ['\CRM_Core_BAO_RecurringEntity', 'triggerUpdate']);
- $dispatcher->addListener('civi.dao.postDelete', ['\CRM_Core_BAO_RecurringEntity', 'triggerDelete']);
$dispatcher->addListener('hook_civicrm_postSave_civicrm_domain', ['\CRM_Core_BAO_Domain', 'onPostSave']);
$dispatcher->addListener('hook_civicrm_unhandled_exception', [
'CRM_Core_LegacyErrorHandler',