protected function makeConfig()
    {
        $config = [
            "<?php",
            "return [",
            "    'environment' => \"production\",",
            "    'db' => [",
            "        'production' => ["
        ];

        if ($_SESSION['db']['driver'] == "pdo_pgsql" || $_SESSION['db']['driver'] == "pdo_mysql") {
            $config[] = "            'driver' => \"{$_SESSION['db']['driver']}\",";
            $config[] = "            'host' => \"{$_SESSION['db']['host']}\",";
            $config[] = "            'user' => \"{$_SESSION['db']['user']}\",";
            $config[] = "            'password' => \"{$_SESSION['db']['password']}\",";
            $config[] = "            'dbname' => \"{$_SESSION['db']['dbname']}\",";
            $config[] = "            'prefix' => ''";
        } elseif ($_SESSION['db']['driver'] == "pdo_sqlite") {
            $config[] = "            'path' => \"{$_SESSION['db']['path']}\"";
        }

        $config[] = "        ]";
        $config[] = "    ]";
        $config[] = "];";

        return htmlentities(implode(PHP_EOL, $config));
    }