Merge pull request #18963 from samuelsov/nli18n
[civicrm-core.git] / Civi / API / Subscriber / WrapperAdapter.php
index 6b90161e914aa92fd2a5769e66c763d88c1fa2e9..c7216731427fb662c704a59a87ba4dbfba7d803c 100644 (file)
@@ -26,8 +26,8 @@ class WrapperAdapter implements EventSubscriberInterface {
    */
   public static function getSubscribedEvents() {
     return [
-      Events::PREPARE => ['onApiPrepare', Events::W_MIDDLE],
-      Events::RESPOND => ['onApiRespond', Events::W_EARLY * 2],
+      'civi.api.prepare' => ['onApiPrepare', Events::W_MIDDLE],
+      'civi.api.respond' => ['onApiRespond', Events::W_EARLY * 2],
     ];
   }