dev/core#1744 - Civi/API - Simplify event naming
[civicrm-core.git] / Civi / API / Subscriber / DynamicFKAuthorization.php
index ecaf5ff428ecb8719090530fead9281366a65b5d..6a19cded035058c8a9d8ac931e7cfd27e95cda45 100644 (file)
@@ -36,7 +36,7 @@ class DynamicFKAuthorization implements EventSubscriberInterface {
    */
   public static function getSubscribedEvents() {
     return [
-      Events::AUTHORIZE => [
+      'civi.api.authorize' => [
         ['onApiAuthorize', Events::W_EARLY],
       ],
     ];