APIv4 - Deprecate unnecessary event
authorColeman Watts <coleman@civicrm.org>
Wed, 27 Apr 2022 08:10:53 +0000 (10:10 +0200)
committerColeman Watts <coleman@civicrm.org>
Wed, 27 Apr 2022 18:58:15 +0000 (20:58 +0200)
commit47a3d1ca5cc294e743d9e617424117ad53b9f9d9
treec7c5f5c261edeeb21a1ceb3264b73ed198e63ca6
parent82ba010e10f7c9093030f5ff30b91a5ba358b892
APIv4 - Deprecate unnecessary event

Before: To implement a virtual API4 entity, an extension must listen to 2 events, one of which is redundant.
After: Redundant event no longer used, as the one event returns all necessary data.

All the info from `civi.api4.entityTypes` is sufficient to create an APIv4 request.
`civi.api4.createRequest` was redundant.
Civi/API/Request.php
Civi/Api4/Event/CreateApi4RequestEvent.php
Civi/Api4/Event/Subscriber/CreateApi4RequestSubscriber.php [deleted file]
Civi/Api4/Utils/CoreUtil.php