Releases: PhpGt/Routing
December 2023 release
July 2023 release
What's Changed
- build: hard dependencies by @g105b in #20
- Dependabot by @g105b in #22
- build(deps): bump phpgt/servicecontainer from 1.2.0 to 1.2.1 by @dependabot in #23
- build(deps): bump phpgt/http from 1.1.5 to 1.1.6 by @dependabot in #24
- build(deps-dev): bump phpstan/phpstan from 1.8.4 to 1.9.4 by @dependabot in #29
- Star accept header (/) matches the first route by @g105b in #30
- Update build deps and PHPStorm analysis tweaks by @g105b in #53
New Contributors
- @dependabot made their first contribution in #23
Full Changelog: v1.1.0...v1.1.1
v1.1.0
Accept */* if empty accept header
This minor patch is being released to help in situations where WebEngine is being called from a cURL request, but the Accept header is being sent empty. Specifically this helps the Goutte test runner for Behat scripts.
Get Dynamic URLs from DynamicPath object
This minor release introduces DynamicPath::getUrl()
which returns a URL string containing the dynamic parts, indicated with an @ character.
Magic paths match current directory
This minor patch release makes Magic Path matching consistent with WebEngine v3's usage: if there's a magic path in the uri-matched directory, it will continue to be matched. Only directories above magic paths will not be matched.
Dynamic path improvement
In this minor patch release, if the dynamic path is requested without a parameter, the deepest path variable is returned. This is especially useful for paths with only a single dynamic path variable.
Stable release
Since being extracted from WebEngine's v3 release, this repository has been routing many WebEngine v4 applications. This stable release is being made after deploying an application to production this week, with no changes required to Routing functionality.
Have fun, and stay productive!
File Matching & Assembly components
Included in this pre-release are the following features:
- Path and Assembly components are introduced.
- Better type safety throughout.
- HTTP Content-type negotiation.
- Stream wrapper ensures files have a namespace.
- FileMatcher: PathMatcher for expanding a directory of matching files.
- FileMatcher: BasicFileMatch.
- FileMatcher: MagicFileMatch
Fully implemented routing
This release marks the completion of the first main feature, and this repository's namesake: routing.
A PSR-7 request can be provided to the router, along with an object with method attributes, and the request will be matched against the available attributes in order to execute the correct method.
Next up is providing a dynamic path extractor and providing a mechanism for building the correct Assembly objects.