-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Update route callable signature for PSR-15 #2052
Comments
Will become:
|
If you're going to continue using the |
We should look at that, certainly. The route callable's signature is configuration via a strategy, so this ticket is for creating the new strategy to more closely match the PSR-15 signature. |
Hi! According to the accepted PSR-15 specification the new signature should look like this. $app->get('/foo', function (ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface {
$response = $handler->handle($request);
// Do something...
// Return response object
return $response;
}); Is this correct? Will the signature in Slim version 4 look like this? |
Fixed in #2497 |
Related to #2050
The text was updated successfully, but these errors were encountered: