Ergo\Routing\Router::_getRouteMatch PHP Method

_getRouteMatch() private method

Look for a matching route in provided route list.
private _getRouteMatch ( string $path, array $routes ) : mixed
$path string
$routes array
return mixed Ergo\Routing\Route or boolean
    private function _getRouteMatch($path, $routes)
    {
        foreach ($routes as $route) {
            if ($match = $route->getMatch($path, $this->metadata($route->getName()))) {
                return $match;
            }
        }
        return false;
    }