(REF) Define SpecProviderPass (extracted from CRM_Api4_Services)
authorTim Otten <totten@civicrm.org>
Mon, 15 Aug 2022 23:51:00 +0000 (16:51 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 16 Aug 2022 22:21:33 +0000 (15:21 -0700)
commit30d6a946faf2ca4e51ec186182095702f3ec98f9
tree1e85b675f48f09e16b4c097faae10ff71227102c
parentc354cc12e344659cf52e2562dae8a9d9237d34f2
(REF) Define SpecProviderPass (extracted from CRM_Api4_Services)

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

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