ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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}
An exception for terminatinating execution or to throw for unit testing.
Route callback strategy with route parameters as individual arguments.
__invoke(callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments)
Invoke a route callable with request, response and all route parameters as individual arguments.
Representation of an outgoing, server-side response.
Representation of an incoming, server-side HTTP request.
Defines a contract for invoking a route callable.
Slim Framework (https://slimframework.com)
$response