Beispiel #1
0
 /**
  * Tries to find a route for the given request.
  * 
  * @param Request $request
  * @return array|bool Array of information about a found route or false if no route found.
  */
 public function getRouteForRequest(Request $request)
 {
     return $this->getRouteForUrl($request->getPathInfo(), $request->getMethod());
 }
 public function index($id, Request $request)
 {
     return '#' . $id . ': Injected Request with URL: ' . $request->getPathInfo();
 }