Merge pull request #19766 from WeMoveEU/faster-select2-groups
[civicrm-core.git] / Civi / API / Provider / MagicFunctionProvider.php
index cdeaab339f8cb15860b81e0052853bc1cf4485e5..febcaa06226a4aa9c123874618526c47b6f643bf 100644 (file)
@@ -25,14 +25,18 @@ class MagicFunctionProvider implements EventSubscriberInterface, ProviderInterfa
    */
   public static function getSubscribedEvents() {
     return [
-      Events::RESOLVE => [
+      'civi.api.resolve' => [
         ['onApiResolve', Events::W_MIDDLE],
       ],
     ];
   }
 
   /**
-   * @var array (string $cachekey => array('function' => string, 'is_generic' => bool))
+   * Local cache of function-mappings.
+   *
+   * array(string $cacheKey => array('function' => string, 'is_generic' => bool))
+   *
+   * @var array
    */
   private $cache;