fix properties not initialized

This commit is contained in:
sunxyw
2023-02-24 23:09:37 +08:00
parent d513495b3b
commit 8f43012a5c
3 changed files with 12 additions and 37 deletions

View File

@@ -7,8 +7,8 @@ use OneBot\Driver\Process\ProcessManager;
use Psr\Log\LoggerInterface;
use ZM\Config\Environment;
use ZM\Config\EnvironmentInterface;
use ZM\Config\ZMConfig;
use ZM\Framework;
use ZM\Kernel;
/*
* 这里是容器的配置文件,你可以在这里配置容器的绑定和其他一些参数。
@@ -37,7 +37,7 @@ return [
// 详细介绍请参阅https://php-di.org/doc/performances.html#caching
'cache' => [
// 是否启用缓存,支持 bool、callable
'enable' => fn () => ZMConfig::getInstance()->getEnvironment() === 'production',
'enable' => fn () => Kernel::getInstance()->environment('production'),
'namespace' => 'zm',
],
];