src/Routing/Router.php
/**
	 * Finds a route matching the provided request. If no such route is found, returns null.
	 *
	 * @return Route|null
	 */
Finds a route matching the provided request. If no such route is found, returns null.
@return Route|null
Finds a route matching the provided request . If no such route is found returns null . @return Route|null
public function match(Request $request) {
		foreach ($this->routes as $route) {
			if ($route->matches($request)) {
				return $route;
			}
		}
		return null;
	}
public function match ( Request $ request ) { foreach ( $ this -> routes as $ route ) { if ( $ route -> matches ( $ request ) ) { return $ route ; } } return null ; }
Finds a route matching the provided request.
Finds a route matching the provided request .