This commit is contained in:
2021-05-17 18:33:40 +08:00
parent ffb27f415a
commit ef7efe271c
2 changed files with 6 additions and 4 deletions
+5
View File
@@ -38,6 +38,11 @@ class Runtime extends Command
$runtime = storage(static::CACHE_NAME);
$configs = Snowflake::app()->getConfig()->getData();
array_walk_recursive($configs, function (&$value, $key) {
if ($value instanceof \Closure) {
$value = null;
}
});
Snowflake::writeFile(storage(static::CONFIG_NAME), serialize($configs));
Snowflake::writeFile($runtime, serialize($annotation->getLoader()));