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 c9b0387 commit 3b7a9e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"thumb",
"image"
],
"version" : "0.6.0",
"version" : "0.7.0",
"time" : "2017-06-26 17:30:00",
"require" : {
"php" : ">=5.5.0"
Expand Down
4 changes: 2 additions & 2 deletions lib/strategy/GD.php → lib/adapter/GD.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
* @copyright Copyright (c) 2008-2017 Windwork Team. (http://www.windwork.org)
* @license http://opensource.org/licenses/MIT
*/
namespace wf\image\strategy;
namespace wf\image\adapter;

use \wf\image\Exception;

/**
* 图片处理类,使用GD2生成缩略图和打水印
*
* @package wf.image.strategy
* @package wf.image.adapter
* @author cm <[email protected]>
* @link http://docs.windwork.org/manual/wf.image.html
* @since 0.1.0
Expand Down
4 changes: 2 additions & 2 deletions test/gd.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

require_once '../lib/ImageInterface.php';
require_once '../lib/Exception.php';
require_once '../lib/strategy/GD.php';
require_once '../lib/adapter/GD.php';

/**
*
Expand All @@ -26,7 +26,7 @@ function testWatermark(\wf\image\ImageInterface $img, $dist, $watermarkPlace = 9
file_put_contents($dist, $ret);
}

$img = new \wf\image\strategy\GD();
$img = new \wf\image\adapter\GD();

# 缩略图
// test png
Expand Down

0 comments on commit 3b7a9e8

Please sign in to comment.