src/Leevel/Database/Mysql.php
public function parseDsn(array $option): string
    {
        $dsn = [];

        foreach (['Base', 'Port', 'Socket', 'Charset'] as $method) {
            $dsn[] = $this->{'parse'.$method}($option);
        }

        return implode('', $dsn);
    }
public function parseDsn(array $option): string
    {
        $dsn = [];

        foreach (['Base', 'Port', 'Socket', 'Charset'] as $method) {
            $dsn[] = $this->{'parse'.$method}($option);
        }

        return implode('', $dsn);
    }
dsn 解析.

@param array $option

@return string