Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Invoker\InvokerInterface Interface Reference
Inheritance diagram for Invoker\InvokerInterface:
DI\Container Invoker\Invoker DI\CompiledContainer

Public Member Functions

 call ($callable, array $parameters=[])
 Call the given function using the given parameters.
 

Member Function Documentation

◆ call()

Invoker\InvokerInterface::call ( $callable,
array $parameters = [] )

Call the given function using the given parameters.

Parameters
callable | array | string$callableFunction to call.
array$parametersParameters to use.
Return values
mixedResult of the function.
Exceptions
InvocationExceptionBase exception class for all the sub-exceptions below.
NotCallableException
NotEnoughParametersException

Implemented in DI\Container, and Invoker\Invoker.


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