Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispatch 11.0.0 #90

Merged
merged 12 commits into from
Apr 3, 2023
Merged

Dispatch 11.0.0 #90

merged 12 commits into from
Apr 3, 2023

Conversation

noodlehaus and others added 2 commits March 29, 2023 23:00
@noodlehaus noodlehaus added the WIP Work in progress label Mar 29, 2023
@noodlehaus noodlehaus marked this pull request as draft March 29, 2023 15:04
noodlehaus and others added 10 commits March 30, 2023 00:20
Brought back the old `stash()` feature from 4.x. Also used it for
storing routes information (called in `route()` and `dispatch()`.
implement stash() for storing/fetching request-scope values
This brings back the old `bind()` functionality that lets you map
callbacks to named route parameters. The returned value from the
bindings will be used as the new value for the matching route params.
implement route param bindings/transform via `bind()`
This change allows passing in of middleware functions in your `route()`
calls. Middleware functions will receive a `callable $next` as its first
argument when invoked, followed by `array $params`, and the rest of the
arguments that were passed to `dispatch()`. Note that the `$params`
argument will always be there, compared to its optional nature when
actions are called.
add middleware support in `route(...)` calls
This adds the `apply(...)` function for mapping middleware against
all routes or if they match a specified pattern. The middleware mapped
using `apply(...)` get executed before inline middleware injected
through `route(...)`.
Implement `apply(...)` function for defining pattern-based or all-route middleware
Update documentation for v11
@noodlehaus noodlehaus removed the WIP Work in progress label Apr 3, 2023
@noodlehaus noodlehaus marked this pull request as ready for review April 3, 2023 14:52
@noodlehaus noodlehaus mentioned this pull request Apr 3, 2023
@noodlehaus noodlehaus merged commit 0a4a417 into develop Apr 3, 2023
@noodlehaus noodlehaus deleted the feat/dispatch11 branch April 3, 2023 15:03
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.

None yet

1 participant