get('/router','/test'); /* * eg path : /closure/index.html ; /closure/ ; /closure */ $routeCollector->get('/closure',function (Request $request,Response $response){ $response->write('this is closure router'); //不再进入控制器解析 return false; }); } }