Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Public Member Functions | |
getParameters (ReflectionFunctionAbstract $reflection, array $providedParameters, array $resolvedParameters) | |
Resolves the parameters to use to call the callable. | |
Invoker\ParameterResolver\ParameterResolver::getParameters | ( | ReflectionFunctionAbstract | $reflection, |
array | $providedParameters, | ||
array | $resolvedParameters ) |
Resolves the parameters to use to call the callable.
$resolvedParameters
contains parameters that have already been resolved.
Each ParameterResolver must resolve parameters that are not already in $resolvedParameters
. That allows to chain multiple ParameterResolver.
ReflectionFunctionAbstract | $reflection | Reflection object for the callable. |
array | $providedParameters | Parameters provided by the caller. |
array | $resolvedParameters | Parameters resolved (indexed by parameter position). |
array |
Implemented in DI\Invoker\DefinitionParameterResolver, DI\Invoker\FactoryParameterResolver, Invoker\ParameterResolver\AssociativeArrayResolver, Invoker\ParameterResolver\Container\ParameterNameContainerResolver, Invoker\ParameterResolver\Container\TypeHintContainerResolver, Invoker\ParameterResolver\DefaultValueResolver, Invoker\ParameterResolver\NumericArrayResolver, Invoker\ParameterResolver\ResolverChain, and Invoker\ParameterResolver\TypeHintResolver.