Skip to content

Commit

Permalink
把strategy文件夹名恢复成adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpan committed Sep 7, 2017
1 parent 108e647 commit 647acf4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ $tplOpt = [
// 默认备用模板文件,为空或跟默认模板文件一样,则不使用备用模板文件,建议是"{$mod}/{$ctl}.{$act}.html"
'defaultSpareTpl' => '',
];
$view = new \wf\template\strategy\Wind($tplOpt);
$view = new \wf\template\adapter\Wind($tplOpt);
// 变量赋值
$view->assign('myVar', '123456');
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "windwork/template",
"description" : "windwork template engine",
"version" : "0.6.2",
"version" : "0.7.0",
"time" : "2017-07-20 08:50:00",
"require" : {
"php" : ">=5.5.0"
Expand Down
4 changes: 2 additions & 2 deletions lib/strategy/Wind.php → lib/adapter/Wind.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
* @copyright Copyright (c) 2008-2017 Windwork Team. (http://www.windwork.org)
* @license http://opensource.org/licenses/MIT
*/
namespace wf\template\strategy;
namespace wf\template\adapter;

/**
* 模板视图引擎
* 模板引擎将模板“编译”成php脚本,每次调用视图的时候将包含 “编译”后的php脚本
*
* @package wf.template.strategy
* @package wf.template.adapter
* @author cm <[email protected]>
* @link http://docs.windwork.org/manual/wf.template.html
* @since 1.0.0
Expand Down
4 changes: 2 additions & 2 deletions test/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
define('WF_IN', 1);

require_once __DIR__ . '/../lib/EngineInterface.php';
require_once __DIR__ . '/../lib/strategy/Wind.php';
require_once __DIR__ . '/../lib/adapter/Wind.php';
require_once __DIR__ . '/../lib/Exception.php';


use \wf\template\strategy\Wind;
use \wf\template\adapter\Wind;

define('TEST_CONST', 'test-const');

Expand Down

0 comments on commit 647acf4

Please sign in to comment.