Normalization of Context class

This commit is contained in:
whale
2020-04-15 10:55:10 +08:00
parent 676527205f
commit 1d2aaf3c99
8 changed files with 70 additions and 19 deletions

View File

@@ -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;
}
}