ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Slim\Handlers\Strategies\RequestResponseArgs Class Reference

Route callback strategy with route parameters as individual arguments. More...

+ Inheritance diagram for Slim\Handlers\Strategies\RequestResponseArgs:
+ Collaboration diagram for Slim\Handlers\Strategies\RequestResponseArgs:

Public Member Functions

 __invoke (callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments)
 Invoke a route callable with request, response and all route parameters as individual arguments. More...
 

Detailed Description

Route callback strategy with route parameters as individual arguments.

Definition at line 18 of file RequestResponseArgs.php.

Member Function Documentation

◆ __invoke()

Slim\Handlers\Strategies\RequestResponseArgs::__invoke ( callable  $callable,
ServerRequestInterface  $request,
ResponseInterface  $response,
array  $routeArguments 
)

Invoke a route callable with request, response and all route parameters as individual arguments.

Parameters
array | callable$callable
ServerRequestInterface$request
ResponseInterface$response
array$routeArguments
Returns
mixed

Implements Slim\Interfaces\InvocationStrategyInterface.

Definition at line 32 of file RequestResponseArgs.php.

37  {
38  array_unshift($routeArguments, $request, $response);
39 
40  return call_user_func_array($callable, $routeArguments);
41  }
$response

The documentation for this class was generated from the following file: