mirror of
https://codeberg.org/vlw/scaffold.git
synced 2026-02-26 03:21:57 +01:00
fix: set database env credentials without returning new instance
This commit is contained in:
parent
1536079fe3
commit
eacd3ae2c9
1 changed files with 2 additions and 4 deletions
|
|
@ -26,9 +26,9 @@
|
|||
* @param string $username
|
||||
* @param string $password
|
||||
* @param string $database
|
||||
* @return static
|
||||
* @return void
|
||||
*/
|
||||
public static function from_credentials(
|
||||
public static function set_credentials(
|
||||
?string $host = self::DEFAULT_HOSTNAME,
|
||||
?string $username = self::DEFAULT_USERNAME,
|
||||
?string $password = self::DEFAULT_PASSWORD,
|
||||
|
|
@ -44,8 +44,6 @@
|
|||
$_ENV["mariadb"]["user"] = $username;
|
||||
$_ENV["mariadb"]["pass"] = $password;
|
||||
$_ENV["mariadb"]["db"] = $database;
|
||||
|
||||
return new static();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue