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,
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}
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)
$response