Repository navigation
docs: describe ConfigSection and the typed reader rules - #193
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #192 (not closed here: merges into
stagingclose nothing).Framework change: quantum-php/framework#672 (PR quantum-php/framework#706, merge-up quantum-php/framework#708).
Summary
ConfigSectionandconfig()->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()andgetInt()without a default require the key, and a missing,nullor 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.ConfigSection; cache and rate limit name their requiredttlandport; the SMTPportfalls back to 25; the lang cachettlfalls back to the cache's default; the auth adapters read their settings when they are built (new "When the settings are read" section, withreadConfig()for adapters of your own).->all()->and typed readers without a default.Changed paths
v3.0/packages/config/overview.md,architecture.md,contracts.md,usage.mdv3.0/advanced-features/configuration.mdv3.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.mdv3.0/upgrade-guide.mdSUMMARY.mdis unchanged: no pages were added, moved or removed.