Merge pull request #18963 from samuelsov/nli18n
[civicrm-core.git] / Civi / API / Subscriber / TransactionSubscriber.php
index 8e7ff6a31bdb5df9da145dbfa68e177af45b0902..88f34f69b294369dfde2cf9db5b746e51f035dfb 100644 (file)
@@ -34,9 +34,9 @@ class TransactionSubscriber implements EventSubscriberInterface {
    */
   public static function getSubscribedEvents() {
     return [
-      Events::PREPARE => ['onApiPrepare', Events::W_EARLY],
-      Events::RESPOND => ['onApiRespond', Events::W_MIDDLE],
-      Events::EXCEPTION => ['onApiException', Events::W_EARLY],
+      'civi.api.prepare' => ['onApiPrepare', Events::W_EARLY],
+      'civi.api.respond' => ['onApiRespond', Events::W_MIDDLE],
+      'civi.api.exception' => ['onApiException', Events::W_EARLY],
     ];
   }