ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
RequestResponse.php
Go to the documentation of this file.
1 <?php
10 
14 
19 {
31  public function __invoke(
32  callable $callable,
33  ServerRequestInterface $request,
35  array $routeArguments
36  ) {
37  foreach ($routeArguments as $k => $v) {
38  $request = $request->withAttribute($k, $v);
39  }
40 
41  return call_user_func($callable, $request, $response, $routeArguments);
42  }
43 }
Representation of an incoming, server-side HTTP request.
Slim Framework (https://slimframework.com)
Representation of an outgoing, server-side response.
withAttribute($name, $value)
Return an instance with the specified derived request attribute.
Create styles array
The data for the language used.
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...
$response
Defines a contract for invoking a route callable.