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

Add middleware handler #39

Merged
merged 4 commits into from
Nov 4, 2023
Merged

Add middleware handler #39

merged 4 commits into from
Nov 4, 2023

Conversation

bajb
Copy link
Member

@bajb bajb commented Nov 4, 2023

Controller handle method can be set to:

$middle = new MiddlewareHandler(new FuncHandler(fn(Context $c) => parent::handle($c)));
$middle->add(/* Add your middleware */);
return $middle->handle($c);

@bajb bajb merged commit b7142fe into master Nov 4, 2023
2 checks passed
@bajb bajb deleted the middle branch November 4, 2023 21:50
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.

1 participant