AfformScanner - Use `ang/*.aff.json` file-naming convention
authorTim Otten <totten@civicrm.org>
Sat, 9 Feb 2019 00:56:03 +0000 (19:56 -0500)
committerCiviCRM <info@civicrm.org>
Wed, 16 Sep 2020 02:13:17 +0000 (19:13 -0700)
commit87dde5ebb96416f98f1f76a82231be0eee8d696b
tree0c8db7cbae6ad8765eb06b24fb4f684baf33cc1e
parentdcd0adb5f9b01f01798ce81d11653d591bd84fb7
AfformScanner - Use `ang/*.aff.json` file-naming convention

__Before__: Scan each `$extension` for `$extension/afform/*/meta.json`

__After__: Scan each `$extension` for `$extension/ang/*.aff.json`

__Comments__: This is a significant breaking change for v0.2.

It preserves some key design-goals from the old naming convention

* The symbol in HTML (e.g.  `afform-email`) should have symmetry with the file-name (e.g.  `afform/Email/*` or `afform-email.*`)
* The file-name in the base-code provided by an extension should match the file-name in the local override folder.

However, the new naming convention also:

* Makes it easier downstream to choose their own prefixes. We're not boxed-in or hard-coded to `afform-`.
  This will be useful, e.g., with distinguishing the stdlib from the business-forms that use the stdlib.
* Puts Afform-Angular content in the same folder structure as Regular-Angular content.
ext/afform/core/CRM/Afform/AfformScanner.php
ext/afform/core/Civi/Api4/Action/Afform/Revert.php
ext/afform/core/Civi/Api4/Traits/AfformCrudTrait.php
ext/afform/core/afform.php
ext/afform/core/tests/phpunit/CRM/Afform/UtilTest.php [new file with mode: 0644]