Addon
Corex\Config\Addons\Addon · class · Config layer
A registered Corex add-on: its slug (plugin directory), the plugin file to toggle, a human label, the optional feature flag toggled alongside the plugin, and the add-on slugs it depends on — plus a rich manifest (spec 044): a summary/description, what it registers (provides), the config keys it needs to be useful (needsKeys), and a docs link. A pure value object — the registry holds these, the manager reasons over them. The manifest fields default to empty so existing registrations keep working (additive).
Public API
Section titled “Public API”__construct(string $slug, string $pluginFile, string $label, ?string $flag, array $requires, string $summary, string $description, array $provides, array $needsKeys, string $docsUrl, ?AddonTier $tier)
Section titled “__construct(string $slug, string $pluginFile, string $label, ?string $flag, array $requires, string $summary, string $description, array $provides, array $needsKeys, string $docsUrl, ?AddonTier $tier)”hasFlag(): bool
Section titled “hasFlag(): bool”needsConfiguration(): bool
Section titled “needsConfiguration(): bool”missingKeys(callable $value): array
Section titled “missingKeys(callable $value): array”The config keys this add-on needs that are still empty.