取消vendor文件夹的排除
This commit is contained in:
1 parent
55d4d7b9c8
commit
1eafa8f5c9
1279 files changed
+277858
-1
No files matched your search
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2019 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace think\contract;
|
||||
|
||||
/**
|
||||
* 视图驱动接口
|
||||
*/
|
||||
interface TemplateHandlerInterface
|
||||
{
|
||||
/**
|
||||
* 检测是否存在模板文件
|
||||
* @access public
|
||||
* @param string $template 模板文件或者模板规则
|
||||
* @return bool
|
||||
*/
|
||||
public function exists(string $template): bool;
|
||||
|
||||
/**
|
||||
* 渲染模板文件
|
||||
* @access public
|
||||
* @param string $template 模板文件
|
||||
* @param array $data 模板变量
|
||||
* @return void
|
||||
*/
|
||||
public function fetch(string $template, array $data = []): void;
|
||||
|
||||
/**
|
||||
* 渲染模板内容
|
||||
* @access public
|
||||
* @param string $content 模板内容
|
||||
* @param array $data 模板变量
|
||||
* @return void
|
||||
*/
|
||||
public function display(string $content, array $data = []): void;
|
||||
|
||||
/**
|
||||
* 配置模板引擎
|
||||
* @access private
|
||||
* @param array $config 参数
|
||||
* @return void
|
||||
*/
|
||||
public function config(array $config): void;
|
||||
|
||||
/**
|
||||
* 获取模板引擎配置
|
||||
* @access public
|
||||
* @param string $name 参数名
|
||||
* @return void
|
||||
*/
|
||||
public function getConfig(string $name);
|
||||
}
|
||||
Reference in new issue
Block a user