37 foreach ($routeArguments as $k => $v) {
41 return call_user_func($callable, $request,
$response, $routeArguments);
An exception for terminatinating execution or to throw for unit testing.
Default route callback strategy with route parameters as an array of arguments.
__invoke(callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments)
Invoke a route callable with request, response, and all route parameters as an array of arguments.
Representation of an outgoing, server-side response.
Representation of an incoming, server-side HTTP request.
withAttribute($name, $value)
Return an instance with the specified derived request attribute.
Defines a contract for invoking a route callable.
Slim Framework (https://slimframework.com)