Merge pull request #17143 from mattwire/donthidedisabledmemberships
[civicrm-core.git] / Civi / API / Provider / StaticProvider.php
index 31dc36c7a6eda21973f8e32e389b9518d9f0dbad..138d561b1fd5567742afe7b5bbe022f8727172dd 100644 (file)
@@ -29,10 +29,10 @@ class StaticProvider extends AdhocProvider {
    */
   public static function getSubscribedEvents() {
     return [
-      Events::RESOLVE => [
+      'civi.api.resolve' => [
         ['onApiResolve', Events::W_MIDDLE],
       ],
-      Events::AUTHORIZE => [
+      'civi.api.authorize' => [
         ['onApiAuthorize', Events::W_MIDDLE],
       ],
     ];