Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Public Member Functions | |
__construct (array $resolvers=[]) | |
appendResolver (ParameterResolver $resolver) | |
Push a parameter resolver after the ones already registered. | |
getParameters (ReflectionFunctionAbstract $reflection, array $providedParameters, array $resolvedParameters) | |
Resolves the parameters to use to call the callable. | |
prependResolver (ParameterResolver $resolver) | |
Insert a parameter resolver before the ones already registered. | |
Invoker\ParameterResolver\ResolverChain::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 |
Implements Invoker\ParameterResolver\ParameterResolver.