namespace Civi\API\Subscriber;
-use Civi\API\Events;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
*/
public static function getSubscribedEvents() {
return [
- Events::PREPARE => ['onApiPrepare', 999],
- Events::RESPOND => ['onApiRespond', -999],
+ 'civi.api.prepare' => ['onApiPrepare', 999],
+ 'civi.api.respond' => ['onApiRespond', -999],
];
}