(REF) Define EventScannerPass (extracted from CRM_Api4_Services)
authorTim Otten <totten@civicrm.org>
Mon, 15 Aug 2022 23:32:04 +0000 (16:32 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 16 Aug 2022 22:21:33 +0000 (15:21 -0700)
commitc354cc12e344659cf52e2562dae8a9d9237d34f2
tree3a6b126befa54f7504a5fc71e5138a5c20127edb
parentb764626489a9ba4219d95cd70600fac32c42b33b
(REF) Define EventScannerPass (extracted from CRM_Api4_Services)

The `CRM_Api4_Services` implementation has a secret behavior that applies
to all services - it detects the tag 'event_subscriber' and registers with
the dispatcher.

This kind of behavior is often implemented as "compiler pass" and given its
own documentation.
CRM/Api4/Services.php
Civi/Core/Compiler/EventScannerPass.php [new file with mode: 0644]
Civi/Core/Container.php