改进Route Response和request类

This commit is contained in:
thinkphp
2016-05-07 22:34:08 +08:00
parent 02e8b2e8d0
commit 2862f07ce9
3 changed files with 12 additions and 9 deletions

View File

@@ -37,9 +37,9 @@ class Request
protected static $path;
/**
* @var string 路由
* @var array 路由
*/
protected static $route;
protected static $route = [];
/**
* @var array 调度信息
@@ -435,10 +435,10 @@ class Request
/**
* 获取当前请求的路由
* @access public
* @param string $route 路由名称
* @return string
* @param array $route 路由名称
* @return array
*/
public static function route($route = '')
public static function route($route = [])
{
if (!empty($route)) {
self::$route = $route;