src/RuntimeContainer.php
protected function parseParam($param, string $name)
    {
        if (is_iterable($param)) {
            foreach ($param as $key => $value) {
                $param[$key] = $this->parseParam($value, $name);
            }

            return $param;
        }

        if (is_string($param)) {
            $param = $this->config->getEnv($param);

            if (preg_match('#^\{\{([^{}]+)\}\}$#', $param, $matches)) {
                return '{'.$matches[1].'}';
            }
            if (preg_match('#^\{([^{}]+)\}$#', $param, $matches)) {
                return $this->traverseTree($name, $matches[1]);
            }

            return $param;
        }

        return $param;
    }
protected function parseParam($param, string $name)
    {
        if (is_iterable($param)) {
            foreach ($param as $key => $value) {
                $param[$key] = $this->parseParam($value, $name);
            }

            return $param;
        }

        if (is_string($param)) {
            $param = $this->config->getEnv($param);

            if (preg_match('#^\{\{([^{}]+)\}\}$#', $param, $matches)) {
                return '{'.$matches[1].'}';
            }
            if (preg_match('#^\{([^{}]+)\}$#', $param, $matches)) {
                return $this->traverseTree($name, $matches[1]);
            }

            return $param;
        }

        return $param;
    }
protected function parseParam ( $ param , string $ name ) { if ( is_iterable ( $ param ) ) { foreach ( $ param as $ key => $ value ) { $ param [ $ key ] = $ this -> parseParam ( $ value , $ name ) ; } return $ param ; } if ( is_string ( $ param ) ) { $ param = $ this -> config -> getEnv ( $ param ) ; if ( preg_match ( '#^\{\{([^{}]+)\}\}$#' , $ param , $ matches ) ) { return '{' . $ matches [ 1 ] . '}' ; } if ( preg_match ( '#^\{([^{}]+)\}$#' , $ param , $ matches ) ) { return $ this -> traverseTree ( $ name , $ matches [ 1 ] ) ; } return $ param ; } return $ param ; }
Parse param value.
Parse param value .