split runtime info into runtime preferences

This commit is contained in:
sunxyw
2023-03-09 22:36:20 +08:00
parent 772288b517
commit 510bb8dc30
17 changed files with 126 additions and 134 deletions

View File

@@ -39,7 +39,7 @@ return [
// 详细介绍请参阅https://php-di.org/doc/performances.html#caching
'cache' => [
// 是否启用缓存,支持 bool、callable
'enable' => fn () => Framework::getInstance()->environment('production'),
'enable' => fn () => Framework::getInstance()->runtime_preferences->environment('production'),
'namespace' => 'zm',
],
];