芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/giga.mgaplay.com.br/vendor/php-di/invoker/src/ParameterResolver/TypeHintResolver.php
*/ class TypeHintResolver implements ParameterResolver { public function getParameters( ReflectionFunctionAbstract $reflection, array $providedParameters, array $resolvedParameters ) { $parameters = $reflection->getParameters(); // Skip parameters already resolved if (! empty($resolvedParameters)) { $parameters = array_diff_key($parameters, $resolvedParameters); } foreach ($parameters as $index => $parameter) { $parameterClass = $parameter->getClass(); if ($parameterClass && array_key_exists($parameterClass->name, $providedParameters)) { $resolvedParameters[$index] = $providedParameters[$parameterClass->name]; } } return $resolvedParameters; } }