src/Core.php
public static function saveConnectionParameters($bootstrap_location)
        {
            $string = "b2db:\n";
            $string .= "    driver: " . self::getDriver() . "\n";
            $string .= "    username: " . self::getUsername() . "\n";
            $string .= "    password: \"" . self::getPassword() . "\"\n";
            $string .= '    dsn: "' . self::getDSN() . "\"\n";
            $string .= "    tableprefix: '" . self::getTablePrefix() . "'\n";
            $string .= "\n";
            try {
                if (file_put_contents($bootstrap_location, $string) === false) {
                    throw new Exception('Could not save the database connection details');
                }
            } catch (\Exception $e) {
                throw $e;
            }
        }
public static function saveConnectionParameters($bootstrap_location)
        {
            $string = "b2db:\n";
            $string .= "    driver: " . self::getDriver() . "\n";
            $string .= "    username: " . self::getUsername() . "\n";
            $string .= "    password: \"" . self::getPassword() . "\"\n";
            $string .= '    dsn: "' . self::getDSN() . "\"\n";
            $string .= "    tableprefix: '" . self::getTablePrefix() . "'\n";
            $string .= "\n";
            try {
                if (file_put_contents($bootstrap_location, $string) === false) {
                    throw new Exception('Could not save the database connection details');
                }
            } catch (\Exception $e) {
                throw $e;
            }
        }
public static function saveConnectionParameters ( $ bootstrap_location ) { $ string = "b2db:\n" ; $ string .= "    driver: " . self :: getDriver ( ) . "\n" ; $ string .= "    username: " . self :: getUsername ( ) . "\n" ; $ string .= "    password: \"" . self :: getPassword ( ) . "\"\n" ; $ string .= '    dsn: "' . self :: getDSN ( ) . "\"\n" ; $ string .= "    tableprefix: '" . self :: getTablePrefix ( ) . "'\n" ; $ string .= "\n" ; try { if ( file_put_contents ( $ bootstrap_location , $ string ) === false ) { throw new Exception ( 'Could not save the database connection details' ) ; } } catch ( \ Exception $ e ) { throw $ e ; } }
Store connection parameters

@param string $bootstrap_location Where to save the connection parameters
Store connection parameters