matches($m, $path)) { return $route; } } return false; } static function find_web($m, $path) { foreach (Routes::$web as $route) { if ($route->matches($m, $path)) { return $route; } } return false; } }