src/DICIT/Util/ParamsResolver.php
public static function resolveParams(Container $container, $params)
    {
        $resolvedParams = array();
        foreach($params as $key=>$param) {
            $resolvedParam = null;
            if (is_array($param)) {
                $resolvedParam = self::resolveParams($container, $param);
            } else if (is_string($param)){
                $resolvedParam = $container->resolve($param);
            } else {
                $resolvedParam = $param;
            }
            $resolvedParams[$key] = $resolvedParam;
        }
        return $resolvedParams;
    }
public static function resolveParams(Container $container, $params)
    {
        $resolvedParams = array();
        foreach($params as $key=>$param) {
            $resolvedParam = null;
            if (is_array($param)) {
                $resolvedParam = self::resolveParams($container, $param);
            } else if (is_string($param)){
                $resolvedParam = $container->resolve($param);
            } else {
                $resolvedParam = $param;
            }
            $resolvedParams[$key] = $resolvedParam;
        }
        return $resolvedParams;
    }
public static function resolveParams ( Container $ container , $ params ) { $ resolvedParams = array ( ) ; foreach ( $ params as $ key => $ param ) { $ resolvedParam = null ; if ( is_array ( $ param ) ) { $ resolvedParam = self :: resolveParams ( $ container , $ param ) ; } else if ( is_string ( $ param ) ) { $ resolvedParam = $ container -> resolve ( $ param ) ; } else { $ resolvedParam = $ param ; } $ resolvedParams [ $ key ] = $ resolvedParam ; } return $ resolvedParams ; }
Resolve the params of an array

@param array $params
@return array
Resolve the params of an array