code: 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;
      }
docs: @param IContainer $container
  @param ReflectionParameter[] $parameters
  @param array $args
  
  @return array
  @throws Exception
  @throws UnresolveableArgumentException