/** * Handles the specified request. * * This method should return an instance of [[Response]] or its child class * which represents the handling result of the request. * * @param Request $request the request to be handled * @return Response the resulting response * @throws \Exception */ public function handleRequest($request) { list($route, $params) = $request->resolve(); return $this->runAction($route, $params); }