Exemplo n.º 1
0
 /**
  * Find the first route matching a given request.
  *
  * @param \Themosis\Core\Request $request
  * @return \Themosis\Route\Route
  */
 public function match(Request $request)
 {
     // Return a group of registered routes regarding the HTTP method.
     $routes = $this->get($request->getMethod());
     // Check if we find a matching "route" the WordPress way.
     return $this->check($routes, $request);
 }