04: Config facade - #4
Open
nikolaystrikhar wants to merge 3 commits into
Open
Conversation
…tate - Assert Config_Exception is catchable as RuntimeException; nothing covered that inheritance, so dropping it would have left the suite green. - Reset Config in setUp() as well as tearDown(), so the tests asserting on default state no longer depend on class execution order. - Note that the container fixture inherits DI52's class_exists() fallback in has(). - Drop a README pointer to a section that does not exist yet.
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.
Configstatic facade — hook prefix, version, optional container — plusConfig_Exception.set_hook_prefix()rejects bad values, empty string included. Validating at read time would turn a bad prefix into a filter that silently never fires, surfacing later as a misleading "you must callset_hook_prefix()".Config_Exception extends RuntimeException, so callers get one catchable type across the library.Tests\Support\Test_Container, becauselucatume\DI52\Containerimplements PSR-11'sContainerInterface, not StellarWP's.set_container()'s signature is unchanged andstellarwp/container-contractstays the only production dependency.get_version()is stored but nothing reads it yet — spec known-issue F.