Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
 public function handleRequest(Request $request)
 {
     echo $request->pathInfo();
 }