Private/Polyfony/Router.php
public static function reverse(
		string $route_name, 
		array $parameters = [], 
		bool $is_absolute = false, 
		bool $force_tls = false
	) :string {
		// if the specified route doesn't exist
		if(!self::hasRoute($route_name)) {
			// we cannot reverse a route that does not exist
			throw new Exception("Router::reverse() : The [{$route_name}] route does not exist");
		}
		// return the reversed url
		return self::$_routes[$route_name]->getAssembledUrl($parameters, $is_absolute, $force_tls);
	}
public static function reverse(
		string $route_name, 
		array $parameters = [], 
		bool $is_absolute = false, 
		bool $force_tls = false
	) :string {
		// if the specified route doesn't exist
		if(!self::hasRoute($route_name)) {
			// we cannot reverse a route that does not exist
			throw new Exception("Router::reverse() : The [{$route_name}] route does not exist");
		}
		// return the reversed url
		return self::$_routes[$route_name]->getAssembledUrl($parameters, $is_absolute, $force_tls);
	}
public static function reverse ( string $ route_name , array $ parameters = [ ] , bool $ is_absolute = false , bool $ force_tls = false ) : string { // if the specified route doesn't exist if ( ! self :: hasRoute ( $ route_name ) ) { // we cannot reverse a route that does not exist throw new Exception ( "Router::reverse() : The [{$route_name}] route does not exist" ) ; } // return the reversed url return self :: $ _routes [ $ route_name ] -> getAssembledUrl ( $ parameters , $ is_absolute , $ force_tls ) ; }
Reverse the router.

Make a URL out of a route name and parameters, rather than parsing one.
Note that this function does not care about URL paths!

@access public
@param  string    $route_name	The name of the route we wish to generate a URL for.
@param  array     $parameters	The parameters that the route requires.
@return string
@throws \Exception           If the route does not exist.
@static
Reverse the router .