CRM_Utils_Hook_Inspector - Add util for displaying hook metadata
authorTim Otten <totten@civicrm.org>
Thu, 13 Apr 2017 23:51:37 +0000 (16:51 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 14 Apr 2017 03:20:45 +0000 (20:20 -0700)
commitbdd65b5c6b6ab214322be37f433bd6090622aa54
tree5119bc87e8ae7c9a1806d0c3f3e5e88415d7fc14
parenteecd39e126fd0c164a0913c8fe8cca3b7f5e40e8
CRM_Utils_Hook_Inspector - Add util for displaying hook metadata

This is meant to facilitate better code-generators and
documentation-generators. Key features:

 * Adds a new class, `CRM_Utils_Hook_Inspector`.
 * Adds a new hook, `hook_civicrm_hooks`. Extensions may use this to document their hooks.
 * Implements the hook in core (to report on `civicrm-core` hooks)
 * If you follow the practice of declaring static hook stubs (like
   `civicrm-core` does), then use `addStaticStubs()` to assimilate of them.
CRM/Utils/Hook.php
CRM/Utils/Hook/Inspector.php [new file with mode: 0644]
Civi/Core/Container.php
tests/phpunit/CRM/Utils/Hook/InspectorTest.php [new file with mode: 0644]