Merge in 5.26
[civicrm-core.git] / Civi / API / Subscriber / WhitelistSubscriber.php
index 2efd8eef96d2da2217677a57121f404dcb40fccc..3a43128364bea010da09bb70c2e59843d1ca1860 100644 (file)
@@ -30,8 +30,8 @@ class WhitelistSubscriber implements EventSubscriberInterface {
    */
   public static function getSubscribedEvents() {
     return [
-      Events::AUTHORIZE => ['onApiAuthorize', Events::W_EARLY],
-      Events::RESPOND => ['onApiRespond', Events::W_MIDDLE],
+      'civi.api.authorize' => ['onApiAuthorize', Events::W_EARLY],
+      'civi.api.respond' => ['onApiRespond', Events::W_MIDDLE],
     ];
   }