From 3864c14ddc303dc6c9eab84098ccaa2e00de5045 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 25 Jun 2023 12:41:35 -0700 Subject: [PATCH] Add survey tokens --- CRM/Campaign/SurveyTokens.php | 34 ++++++++++++++++++++++++++++++++++ Civi/Core/Container.php | 8 ++++++++ 2 files changed, 42 insertions(+) create mode 100644 CRM/Campaign/SurveyTokens.php diff --git a/CRM/Campaign/SurveyTokens.php b/CRM/Campaign/SurveyTokens.php new file mode 100644 index 0000000000..96e9543cf4 --- /dev/null +++ b/CRM/Campaign/SurveyTokens.php @@ -0,0 +1,34 @@ +addTag('kernel.event_subscriber')->setPublic(TRUE); + $container->setDefinition('crm_contribution_recur_tokens', new Definition( + 'CRM_Contribute_RecurTokens', + [] + ))->addTag('kernel.event_subscriber')->setPublic(TRUE); + $container->setDefinition('crm_survey_tokens', new Definition( + 'CRM_Campaign_SurveyTokens', + [] + ))->addTag('kernel.event_subscriber')->setPublic(TRUE); $container->setDefinition('crm_group_tokens', new Definition( 'CRM_Core_GroupTokens', [] -- 2.25.1