Merge pull request #19766 from WeMoveEU/faster-select2-groups
[civicrm-core.git] / Civi / API / Provider / ReflectionProvider.php
index 87b95bb18b725924c67b58d751ccc953b5ed6b78..ac432b8fa310ce8b260e9ef9c602f83e3490fe33 100644 (file)
@@ -24,11 +24,11 @@ class ReflectionProvider implements EventSubscriberInterface, ProviderInterface
    */
   public static function getSubscribedEvents() {
     return [
-      Events::RESOLVE => [
+      'civi.api.resolve' => [
         // TODO decide if we really want to override others
         ['onApiResolve', Events::W_EARLY],
       ],
-      Events::AUTHORIZE => [
+      'civi.api.authorize' => [
         // TODO decide if we really want to override others
         ['onApiAuthorize', Events::W_EARLY],
       ],