Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
core\router\controller_invoker Class Reference
Inheritance diagram for core\router\controller_invoker:
Slim\Interfaces\InvocationStrategyInterface

Public Member Functions

 __construct (protected ContainerInterface ContainerInterface $container, protected InvokerInterface InvokerInterface $invoker,)
 Create a new controller invoker.
 
 __invoke (callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments,)
 Invoke a route callable.
 

Constructor & Destructor Documentation

◆ __construct()

core\router\controller_invoker::__construct ( protected ContainerInterface ContainerInterface $container,
protected InvokerInterface InvokerInterface $invoker )

Create a new controller invoker.

Parameters
ContainerInterface$container
InvokerInterface$invoker
Parameters
$containerThe DI container
$invokerThe invoker

Member Function Documentation

◆ __invoke()

core\router\controller_invoker::__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<string,string>$routeArguments The route's placeholder arguments
Return values
ResponseInterfaceThe response from the callable.

Implements Slim\Interfaces\InvocationStrategyInterface.


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