Declare plugin settings in the manifest, resolve them from the environment #88
Reference in New Issue
Block a user
Delete Branch "plugin-settings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A plugin declares the configuration it accepts as
settings; the host resolves onePLUGIN_SETTING_<ID>_<KEY>variable per key at boot and hands the typed values toonBoot.Refused at discovery: a malformed declaration, or
requiredalongsidedefault. Refused at boot: a missing required value or one that will not coerce. Warned: a strayPLUGIN_SETTING_variable, and settings declared without anonBootto receive them.A
secretreaches the plugin but never a log, an error or the catalog. Read-only admin screen at/admin/plugin-settingsnames the variable that sets each key and where the value came from.Contract change, so
HOST_API_VERSIONgoes 0.1.0 → 0.2.0 — pre-1.0 the minor is the breaking slot, so every plugin'sapiVersionliteral moves with it. The scheduling example'sSCHEDULING_UPSTREAMbecomesPLUGIN_SETTING_SCHEDULING_UPSTREAM.