Merge pull request #37 from Chrisleung/master

修复执行单元测试时,fast\Form重复定义的问题
pull/80/head
Karson 2018-10-11 21:07:12 +08:00 committed by GitHub
commit c8e4c56e80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ class Common
\think\Cookie::set('think_var', $request->get('lang'));
}
// Form别名
class_alias('fast\\Form', 'Form');
if (!class_exists('Form')) {
class_alias('fast\\Form', 'Form');
}
}
public function addonBegin(&$request)