删除route助手函数

This commit is contained in:
thinkphp
2016-05-24 22:09:30 +08:00
parent 188e64abf6
commit fb09cad6de

View File

@@ -24,7 +24,6 @@ use think\Loader;
use think\Log;
use think\Request;
use think\Response;
use think\Route;
use think\Session;
use think\Url;
use think\View;
@@ -336,20 +335,6 @@ function trace($log = '[think]', $level = 'log')
}
}
/**
* 路由注册
* @param string $rule 路由规则
* @param mixed $route 路由地址
* @param sting $type 请求类型
* @param array $option 路由参数
* @param array $pattern 变量规则
* @return void
*/
function route($rule = '', $route = [], $type = '*', $option = [], $pattern = [])
{
Route::rule($rule, $route, $type, $option, $pattern);
}
/**
* 获取当前Request对象实例
* @return \think\Request