4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
22 namespace Civi\Api4\Event\Subscriber\Generic
;
24 use Civi\API\Event\PrepareEvent
;
26 use Symfony\Component\EventDispatcher\EventSubscriberInterface
;
28 abstract class AbstractPrepareSubscriber
implements EventSubscriberInterface
{
33 public static function getSubscribedEvents() {
35 Events
::PREPARE
=> 'onApiPrepare',
40 * @param \Civi\API\Event\PrepareEvent $event
42 abstract public function onApiPrepare(PrepareEvent
$event);