public function resolve(Container $container) : array
    {
        $resolvedArguments = [];
        foreach($this->arguments as list($argumentValue, $argumentType))
        {
            switch ($argumentType) 
            {
                case static::RAW:
                    $resolvedArguments[] = $argumentValue;
                break;
                case static::DEPENDENCY:
                    $resolvedArguments[] = $container->get($argumentValue);
                break;
                case static::PARAMETER:
                    $resolvedArguments[] = $container->getParameter($argumentValue);
                break;
            }
        }

        return $resolvedArguments;
    }
public function resolve(Container $container) : array
    {
        $resolvedArguments = [];
        foreach($this->arguments as list($argumentValue, $argumentType))
        {
            switch ($argumentType) 
            {
                case static::RAW:
                    $resolvedArguments[] = $argumentValue;
                break;
                case static::DEPENDENCY:
                    $resolvedArguments[] = $container->get($argumentValue);
                break;
                case static::PARAMETER:
                    $resolvedArguments[] = $container->getParameter($argumentValue);
                break;
            }
        }

        return $resolvedArguments;
    }
public function resolve ( Container $ container ) : array { $ resolvedArguments = [ ] ; foreach ( $ this -> arguments as list ( $ argumentValue , $ argumentType ) ) { switch ( $ argumentType ) { case static :: RAW : $ resolvedArguments [ ] = $ argumentValue ; break ; case static :: DEPENDENCY : $ resolvedArguments [ ] = $ container -> get ( $ argumentValue ) ; break ; case static :: PARAMETER : $ resolvedArguments [ ] = $ container -> getParameter ( $ argumentValue ) ; break ; } } return $ resolvedArguments ; }
Resolve the current arguments from the given container instance and
return them as array

@param Container             $container
@return array
Resolve the current arguments from the given container instance and return them as array