mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
将topthink/think-template引入到框架内;增加fetch和include的文件目录的@和@/开头的定位方法
This commit is contained in:
35
extend/think/template/contract/DriverInterface.php
Normal file
35
extend/think/template/contract/DriverInterface.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
namespace think\template\contract;
|
||||
|
||||
/**
|
||||
* 模板编译存储器驱动接口
|
||||
*/
|
||||
interface DriverInterface
|
||||
{
|
||||
/**
|
||||
* 写入编译缓存
|
||||
* @access public
|
||||
* @param string $cacheFile 缓存的文件名
|
||||
* @param string $content 缓存的内容
|
||||
* @return void
|
||||
*/
|
||||
public function write(string $cacheFile, string $content): void;
|
||||
|
||||
/**
|
||||
* 读取编译编译
|
||||
* @access public
|
||||
* @param string $cacheFile 缓存的文件名
|
||||
* @param array $vars 变量数组
|
||||
* @return void
|
||||
*/
|
||||
public function read(string $cacheFile, array $vars = []): void;
|
||||
|
||||
/**
|
||||
* 检查编译缓存是否有效
|
||||
* @access public
|
||||
* @param string $cacheFile 缓存的文件名
|
||||
* @param int $cacheTime 缓存时间
|
||||
* @return bool
|
||||
*/
|
||||
public function check(string $cacheFile, int $cacheTime): bool;
|
||||
}
|
||||
Reference in New Issue
Block a user