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