public function matchRequest(Request $request) { if (!$this->matcher instanceof RouteMatcherInterface) { throw new LogicException('The Router has no route matcher, Router needs a RouteMatcherInterface instance'); } return $this->matcher->match($request->pathInfo()); }
public function handleRequest(Request $request) { echo $request->pathInfo(); }