Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: