protected function dispatch(Request $request) { $method = $request->getMethod(); $pathInfo = substr($request->getPathInfo(), strlen($this->basePath)); return $this->handleDispatcherResponse($this->getDispatcher()->dispatch($method, $pathInfo), $request); }