ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
RequestResponseArgs.php
Go to the documentation of this file.
1 <?php
10 
14 
19 {
20 
32  public function __invoke(
33  callable $callable,
36  array $routeArguments
37  ) {
38  array_unshift($routeArguments, $request, $response);
39 
40  return call_user_func_array($callable, $routeArguments);
41  }
42 }
Representation of an incoming, server-side HTTP request.
foreach($paths as $path) $request
Definition: asyncclient.php:32
__invoke(callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments)
Invoke a route callable with request, response and all route parameters as individual arguments...
Slim Framework (https://slimframework.com)
Representation of an outgoing, server-side response.
Route callback strategy with route parameters as individual arguments.
$response
Defines a contract for invoking a route callable.