Skip to content

Model host placeholders as route parameters - #6

Merged
42dknp merged 2 commits into
mainfrom
dev
Aug 30, 2026
Merged

Model host placeholders as route parameters#6
42dknp merged 2 commits into
mainfrom
dev

Conversation

@42dknp

@42dknp 42dknp commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • rename the public RouteMatch::$pathParameters property to routeParameters
  • preserve both host- and path-derived placeholders as hydratable route parameters
  • keep route parameters at the highest request-hydration precedence
  • document that Router::generate() returns an origin-less URI reference
  • add routing tests for dynamic host placeholders and host-/scheme-constrained URL generation
  • record the canonical Route Parameter term in the package context glossary

This is an intentional pre-stable interface correction for the v0.1 package. Consumers using RouteMatch::$pathParameters or the corresponding named constructor argument must migrate to routeParameters.

Closes #4

Verification

  • composer quality
  • 133 tests, 249 assertions
  • 100% line coverage (709/709 statements)
  • PHPStan and formatting checks pass
  • no dependency security advisories found

@42dknp
42dknp merged commit 82be4ab into main Aug 30, 2026
20 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.

[P3] Model host placeholders as route parameters and clarify URL generation

1 participant