mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-11 18:55:35 +08:00
Normalization of Context class
This commit is contained in:
@@ -18,8 +18,7 @@ class GlobalConfig
|
||||
public $success = false;
|
||||
|
||||
public function __construct() {
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
include_once WORKING_DIR.'/config/global.php';
|
||||
include_once WORKING_DIR . '/config/global.php';
|
||||
global $config;
|
||||
$this->success = true;
|
||||
$this->config = $config;
|
||||
@@ -30,4 +29,8 @@ class GlobalConfig
|
||||
if ($r === null) return null;
|
||||
return $r;
|
||||
}
|
||||
}
|
||||
|
||||
public function getAll() {
|
||||
return $this->config;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user