Remove old defines for flexmailer that haven't been required since CiviCRM 5.x
authorMatthew Wire <mjw@mjwconsult.co.uk>
Thu, 13 Feb 2020 21:00:33 +0000 (21:00 +0000)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Thu, 13 Feb 2020 21:00:33 +0000 (21:00 +0000)
Civi/Core/Container.php

index 15deda8e29f91dfc67a56d235b63ffe7bee76ff7..4172c9946a39658e119b217fbc56dd0210dddb9f 100644 (file)
@@ -310,9 +310,6 @@ class Container {
       ))->addTag('kernel.event_subscriber');
     }
 
-    if (\CRM_Utils_Constant::value('CIVICRM_FLEXMAILER_HACK_SERVICES')) {
-      \Civi\Core\Resolver::singleton()->call(CIVICRM_FLEXMAILER_HACK_SERVICES, [$container]);
-    }
     \CRM_Api4_Services::hook_container($container);
 
     \CRM_Utils_Hook::container($container);
@@ -366,10 +363,6 @@ class Container {
     $dispatcher->addListener(\Civi\ActionSchedule\Events::MAPPINGS, ['CRM_Event_ActionMapping', 'onRegisterActionMappings']);
     $dispatcher->addListener(\Civi\ActionSchedule\Events::MAPPINGS, ['CRM_Member_ActionMapping', 'onRegisterActionMappings']);
 
-    if (\CRM_Utils_Constant::value('CIVICRM_FLEXMAILER_HACK_LISTENERS')) {
-      \Civi\Core\Resolver::singleton()->call(CIVICRM_FLEXMAILER_HACK_LISTENERS, [$dispatcher]);
-    }
-
     return $dispatcher;
   }