public function match($method, $url)
	{
		$params = array();

		foreach ($this->routes as $name => $route)
		{
			if ($route->isMatch($method, $url))
			{
				$params = $route->getMatchedParams();
				break;
			}
		}

		return $params;
	}
public function match($method, $url)
	{
		$params = array();

		foreach ($this->routes as $name => $route)
		{
			if ($route->isMatch($method, $url))
			{
				$params = $route->getMatchedParams();
				break;
			}
		}

		return $params;
	}
public function match ( $ method , $ url ) { $ params = array ( ) ; foreach ( $ this -> routes as $ name => $ route ) { if ( $ route -> isMatch ( $ method , $ url ) ) { $ params = $ route -> getMatchedParams ( ) ; break ; } } return $ params ; }
Loops through all of the registered routes and tries to find a match.

@param  string $method   The http request method
@param  string $url      The url to match
@return array            An array of matches params or an empty array
Loops through all of the registered routes and tries to find a match .