src/Weew/Container/Reflector.php
protected function buildArgumentsFromParameters(
        IContainer $container,
        array $parameters,
        array $args
    ) {
        $arguments = [];

        foreach ($parameters as $index => $parameter) {
            try {
                $arguments[] = $this->getParameterValue($container, $parameter, $args);
            } catch (UnresolveableArgumentException $ex) {
                $ex->setArgumentName($parameter->getName());
                $ex->setArgumentIndex($index + 1);

                throw $ex;
            }
        }

        return $arguments;
    }
protected function buildArgumentsFromParameters(
        IContainer $container,
        array $parameters,
        array $args
    ) {
        $arguments = [];

        foreach ($parameters as $index => $parameter) {
            try {
                $arguments[] = $this->getParameterValue($container, $parameter, $args);
            } catch (UnresolveableArgumentException $ex) {
                $ex->setArgumentName($parameter->getName());
                $ex->setArgumentIndex($index + 1);

                throw $ex;
            }
        }

        return $arguments;
    }
@param IContainer $container
@param ReflectionParameter[] $parameters
@param array $args

@return array
@throws Exception
@throws UnresolveableArgumentException