ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Slim\Interfaces\InvocationStrategyInterface Interface Reference

Defines a contract for invoking a route callable. More...

+ Inheritance diagram for Slim\Interfaces\InvocationStrategyInterface:
+ Collaboration diagram for Slim\Interfaces\InvocationStrategyInterface:

Public Member Functions

 __invoke (callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments)
 Invoke a route callable. More...
 

Detailed Description

Defines a contract for invoking a route callable.

Definition at line 17 of file InvocationStrategyInterface.php.

Member Function Documentation

◆ __invoke()

Slim\Interfaces\InvocationStrategyInterface::__invoke ( callable  $callable,
ServerRequestInterface  $request,
ResponseInterface  $response,
array  $routeArguments 
)

Invoke a route callable.

Parameters
callable$callableThe callable to invoke using the strategy.
ServerRequestInterface$requestThe request object.
ResponseInterface$responseThe response object.
array$routeArgumentsThe route's placholder arguments
Returns
ResponseInterface|string The response from the callable.

Implemented in Slim\Handlers\Strategies\RequestResponseArgs, and Slim\Handlers\Strategies\RequestResponse.


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