Skip to content

Commit a75002a

Browse files
committed
strategy关键词改为adapter
1 parent f10fa0f commit a75002a

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.idea/
12
/vendor/
23
/.settings/
34
/.project

.htaccess

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<IfModule mod_rewrite.c>
22
RewriteEngine On
3-
43
RewriteCond %{REQUEST_FILENAME} !-f
5-
64
RewriteRule . index.php
75
</IfModule>
6+
7+
<Files ~ "\.htaccess">
8+
Order Allow,Deny
9+
Deny from all
10+
</Files>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name" : "windwork/app-basic",
33
"description" : "Windwork, easy,quick,performance oop mvc web framework",
4-
"version" : "0.1.0",
4+
"version" : "0.2.0",
55
"require" : {
66
"php" : ">=5.5.0",
77
"ext-gd" : "*",

config/app.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
'srv' => [
4747
// 模板组件设置
4848
'template' => [
49-
'class' => '\\wf\\template\\strategy\\Wind',
49+
'class' => '\\wf\\template\\adapter\\Wind',
5050
'compileForce' => 1, // 强制编译模板开关
5151
'compileMerge' => 1, // 将编模板合并成一个文件
5252
'compileCheck' => 1, // 检查编译模板开关
@@ -60,7 +60,7 @@
6060

6161
// 缓存组件设置
6262
'cache' => [
63-
'class' => '\\wf\\cache\\strategy\\File', // 缓存模式,File|Memcache|Memcached|Redis
63+
'class' => '\\wf\\cache\\adapter\\File', // 缓存模式,File|Memcache|Memcached|Redis
6464
'enabled' => 1, // 是否启用缓存
6565
'dir' => dirname(__DIR__) . '/data/cache', // 缓存文件夹
6666
'expire' => 7200, // 缓存更新周期(默认:7200s)
@@ -95,7 +95,7 @@
9595
// 附件组件设置
9696
'storage' => [
9797
// 附件处理类
98-
'class' => '\\wf\\storage\\strategy\\File',
98+
'class' => '\\wf\\storage\\adapter\\File',
9999

100100
// 附件存贮文件夹,相对于站点根目录
101101
'dir' => 'storage',
@@ -116,7 +116,7 @@
116116

117117
// 日志组件设置
118118
'logger' => [
119-
'class' => '\\wf\\logger\\strategy\\File',
119+
'class' => '\\wf\\logger\\adapter\\File',
120120
'dir' => dirname(__DIR__) . '/data/log', //
121121

122122
// 日志级别,可设置为0-7,记录小于或等于该级别的日志
@@ -133,17 +133,17 @@
133133

134134
// 加密解密组件设置
135135
'crypt' => [
136-
'class' => '\\wf\\crypt\\strategy\\AzDG',
136+
'class' => '\\wf\\crypt\\adapter\\AzDG',
137137
],
138138

139139
// 验证码组件设置
140140
'captcha' => [
141-
'class' => '\\wf\\captcha\\strategy\\GDSimple',
141+
'class' => '\\wf\\captcha\\adapter\\GDSimple',
142142
],
143143

144144
// 邮件发送组件设置
145145
'mailer' => [
146-
'class' => '\\wf\\mailer\\strategy\\SMTP',
146+
'class' => '\\wf\\mailer\\adapter\\SMTP',
147147
'port' => 25,
148148
'host' => 'smtp.163.com',
149149
'auth' => true,

config/db.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
return [
88
// 主数据库
99
'default' => [
10-
'class' => '\\wf\\db\\strategy\\PDOMySQL', // MySQLi/PDOMySQL
10+
'class' => '\\wf\\db\\adapter\\PDOMySQL', // MySQLi/PDOMySQL
1111
'host' => '127.0.0.1', // 本机测试
1212
'port' => '3306', // 数据库服务器端口
1313
'name' => 'windworkdb', // 数据库名
@@ -21,7 +21,7 @@
2121
/*
2222
'slave' => array(
2323
// 数据库设置
24-
'class' => '\\wf\\db\\strategy\\PDOMySQL',
24+
'class' => '\\wf\\db\\adapter\\PDOMySQL',
2525
'host' => '127.0.0.1', // 本机测试
2626
'port' => '3306', // 数据库服务器端口
2727
'name' => 'windworkdb', // 数据库名

config/url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* 链接相关设置
44
*/
55
return [
6-
'class' => '\\wf\\route\\strategy\\Simple',
6+
'class' => '\\wf\\route\\adapter\\Simple',
77
'useModule' => 0, // 是否启用模块
88

99
// 默认请求响应action

0 commit comments

Comments
 (0)