src/Leevel/Manager/Manager.php
protected function parseOptionParameter($options = []): array
    {
        if (null === $options) {
            return [];
        }

        if (is_string($options)) {
            $options = $this->getContainerOption('connect.'.$options);

            if (!is_array($options)) {
                return [];
            }
        }

        return $options;
    }
protected function parseOptionParameter($options = []): array
    {
        if (null === $options) {
            return [];
        }

        if (is_string($options)) {
            $options = $this->getContainerOption('connect.'.$options);

            if (!is_array($options)) {
                return [];
            }
        }

        return $options;
    }
分析连接参数.

@param array|string $options

@return array