Add an extension hook for registering consent requirements.
Review Request #9964 — Created May 23, 2018 and submitted — Latest diff uploaded
This introduces
djblets.privacy.consent.hooks.ConsentRequirementHook
,
which registers aConsentRequirement
, managing its registration as the
extension initializes or shuts down. This is a very simple hook that
just makes use ofBaseRegistryHook
, feeding in the registry
dynamically on use (to avoid creating a registry unnecessarily or
prematurely).
Unit tests passed.
Used this in an extension successfully.