merge framework and kernel

This commit is contained in:
sunxyw
2023-03-07 23:07:52 +08:00
parent 8f43012a5c
commit 772288b517
19 changed files with 153 additions and 176 deletions

View File

@@ -8,7 +8,7 @@ use OneBot\Config\Config;
use OneBot\Config\Loader\LoaderInterface;
use OneBot\Util\Singleton;
use ZM\Exception\ConfigException;
use ZM\Kernel;
use ZM\Framework;
class ZMConfig
{
@@ -302,7 +302,7 @@ class ZMConfig
}
if ($type === 'environment') {
$name_and_env = explode('.', $name);
if (Kernel::getInstance()->environment($name_and_env[1])) {
if (Framework::getInstance()->environment($name_and_env[1])) {
return true;
}
}