initStorage()->write(HTML_FILE_NAME, $content); } } // 初始化模板编译存储器 private function initStorage() { $type = config('html_cache_compile_type'); $type =$type ?$type : 'File'; $class = false !== strpos($type, '\\') ? $type : '\\think\\template\\driver\\' . ucwords($type); return new $class(); } }