Skip to content

docs: describe ConfigSection and the typed reader rules - #193

Merged
armanist merged 4 commits into
stagingfrom
docs/config-section
Nov 24, 2026
Merged

armanist merged 4 commits into
stagingfrom
docs/config-section

Conversation

@armanist

Copy link
Copy Markdown
Collaborator

For #192 (not closed here: merges into staging close nothing).

Framework change: quantum-php/framework#672 (PR quantum-php/framework#706, merge-up quantum-php/framework#708).

Summary

  • Config package: ConfigSection and config()->section(), with the section contract (read-only, empty for a missing or non-array key, keeps its values, arrays copied, objects shared); all() returns an array; the typed reader contract states the new rules: getBool() and getInt() without a default require the key, and a missing, null or empty value is not set. Each rule is written once, on the contracts page; the overview, architecture and usage pages explain and link to it.
  • advanced-features/configuration.md: all() returns an array; section() is listed.
  • Adapter pages: each adapter receives its part of the config as a ConfigSection; cache and rate limit name their required ttl and port; the SMTP port falls back to 25; the lang cache ttl falls back to the cache's default; the auth adapters read their settings when they are built (new "When the settings are read" section, with readConfig() for adapters of your own).
  • Upgrade guide, "Upgrading from 3.1 to 3.2": new section "Config readers and adapter settings"; "Check the upgrade" becomes section 11 and its grep finds the old trait names, ->all()-> and typed readers without a default.

Changed paths

  • v3.0/packages/config/overview.md, architecture.md, contracts.md, usage.md
  • v3.0/advanced-features/configuration.md
  • v3.0/packages/cache/adapters.md, ratelimit/adapters.md, mailer/adapters.md, mailer/architecture.md, logger/architecture.md, renderer/adapters.md, lang/usage.md, auth/adapters.md, auth/usage.md
  • v3.0/upgrade-guide.md

SUMMARY.md is unchanged: no pages were added, moved or removed.

@armanist
armanist merged commit 7826e70 into staging Nov 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant