src/Http/Router.php
private function parseMap(Request $request) {
		//解析
		$res = explode('/', trim($request->uri, '/'), 3);
		if (count($res) === 3) {
			$request->module = $res[0];
			$request->controller = $res[1];
			$request->action = $res[2];
		} else {
			$request->module = $this->module;
			$request->controller = $res[0];
			$request->action = $res[1];
		}
		return true;
	}
private function parseMap(Request $request) {
		//解析
		$res = explode('/', trim($request->uri, '/'), 3);
		if (count($res) === 3) {
			$request->module = $res[0];
			$request->controller = $res[1];
			$request->action = $res[2];
		} else {
			$request->module = $this->module;
			$request->controller = $res[0];
			$request->action = $res[1];
		}
		return true;
	}
private function parseMap ( Request $ request ) { //解析 $ res = explode ( '/' , trim ( $ request -> uri , '/' ) , 3 ) ; if ( count ( $ res ) === 3 ) { $ request -> module = $ res [ 0 ] ; $ request -> controller = $ res [ 1 ] ; $ request -> action = $ res [ 2 ] ; } else { $ request -> module = $ this -> module ; $ request -> controller = $ res [ 0 ] ; $ request -> action = $ res [ 1 ] ; } return true ; }
Parse request in map way

@access private
@param Request $request
@return bool
Parse request in map way