Skip to content

Commit

Permalink
πŸ”€ Merge pull request #8 from mychidarko/main
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
mychidarko committed May 29, 2022
2 parents a33ced3 + b0f4dda commit db5be70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
10 changes: 5 additions & 5 deletions composer.json
Expand Up @@ -32,11 +32,11 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"leafs/date": "^1.0",
"leafs/password": "^1.0",
"leafs/session": "^1.1",
"leafs/date": "*",
"leafs/password": "*",
"leafs/session": "*",
"leafs/db": "^2.0",
"leafs/form": "^1.1",
"leafs/http": "^1.2.1"
"leafs/form": "*",
"leafs/http": "*"
}
}
11 changes: 3 additions & 8 deletions src/Auth/Core.php
Expand Up @@ -87,14 +87,9 @@ public static function connect(
*/
public static function autoConnect(array $pdoOptions = [])
{
static::connect(
getenv('DB_HOST'),
getenv('DB_DATABASE'),
getenv('DB_USERNAME'),
getenv('DB_PASSWORD'),
getenv('DB_CONNECTION') ? getenv('DB_CONNECTION') : 'mysql',
$pdoOptions,
);
$db = new \Leaf\Db();
$db->autoConnect($pdoOptions);
static::$db = $db;
}

/**
Expand Down

0 comments on commit db5be70

Please sign in to comment.