src/Panda/Routing/RouteCollection.php
public function getMatchingRoute($routes, Request $request)
    {
        foreach ($routes as $matchingRoute) {
            if ($matchingRoute->matches($request)) {
                return $matchingRoute;
            }
        }

        return null;
    }
public function getMatchingRoute($routes, Request $request)
    {
        foreach ($routes as $matchingRoute) {
            if ($matchingRoute->matches($request)) {
                return $matchingRoute;
            }
        }

        return null;
    }
public function getMatchingRoute ( $ routes , Request $ request ) { foreach ( $ routes as $ matchingRoute ) { if ( $ matchingRoute -> matches ( $ request ) ) { return $ matchingRoute ; } } return null ; }
Check which of the given routes matches the given request.

@param Route[] $routes
@param Request $request

@return Route|null
@throws \LogicException
Check which of the given routes matches the given request .