Merge pull request #21281 from civicrm/5.41
[civicrm-core.git] / Civi / API / Subscriber / WrapperAdapter.php
index 6a57a5c541a6317c168cf3e1166f15dfdb3e7ea2..c7216731427fb662c704a59a87ba4dbfba7d803c 100644 (file)
@@ -26,13 +26,13 @@ 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],
     ];
   }
 
   /**
-   * @var array(\API_Wrapper)
+   * @var \API_Wrapper[]
    */
   protected $defaults;