示例#1
0
 private function routeAndHandleRequest(IServerRequest $request)
 {
     $route_point = $this->router->route($request->getUri()->getPath());
     $handler = $this->handlers->getHandler($route_point->path());
     $response = $handler->handle($request->withJoinedQueryParams($route_point->arguments()));
     return $response;
 }