Replies: 1 comment
-
Don't know why this popped up on the first page, but to answer the question: the middleware is part of a pipeline. In this case the pipeline is receiving an instance of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
It's possible to inject a PSR-7
ServerRequestInterface
into controller methods. However, the same does not work with Middlewares. Thehandle
method will always receive anIlluminate\Http\Request
despite this signature:Steps To Reproduce:
public function handle(ServerRequestInterface $request, Closure $next): ResponseInterface
.Expected result
The
handle
method receives aServerRequestInterface
.Actual result
Beta Was this translation helpful? Give feedback.
All reactions