Docs
This commit is contained in:
1 parent
4d25387a47
commit
03da043be3
9 files changed
+106
-6
No files matched your search
Vendored
+7
@@ -5,10 +5,12 @@ class Config
|
||||
private static $instances = [];
|
||||
|
||||
private array $app;
|
||||
private array $database;
|
||||
|
||||
protected function __construct()
|
||||
{
|
||||
$this->app = require_once __DIR__ . "/../../config/app.php";
|
||||
$this->database = require_once __DIR__ . "/../../config/database.php";
|
||||
}
|
||||
|
||||
protected function __clone()
|
||||
@@ -34,4 +36,9 @@ class Config
|
||||
{
|
||||
return Config::getInstance()->app["basePath"];
|
||||
}
|
||||
|
||||
public static function getDatabase()
|
||||
{
|
||||
return Config::getInstance()->database;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user