src/Routing/Router.php
/**
	 * Registers a new redirection route with the router, which applies to all methods. The $to parameter can
	 * contain an absolute or relative link, or another route, including its object, name, or URI (with variables filled).
	 * The default redirection code is 302 and can be overridden with the third argument.
	 *
	 * @param string $uri
	 * @param Route|string $to
	 * @param int $code
	 * @return Route
	 */
Registers a new redirection route with the router, which applies to all methods. The $to parameter can
contain an absolute or relative link, or another route, including its object, name, or URI (with variables filled).
The default redirection code is 302 and can be overridden with the third argument.

@param string $uri
@param Route|string $to
@param int $code
@return Route
Registers a new redirection route with the router which applies to all methods . The $to parameter can contain an absolute or relative link or another route including its object name or URI ( with variables filled ) . The default redirection code is 302 and can be overridden with the third argument . @param string $uri @param Route|string $to @param int $code @return Route
public function createRedirectRoute($uri, $to, $code = 302) {
		return $this->addRoute(static::$verbs, $uri, get_class(new RedirectActionController()) . '::__invoke')
			   ->defaults('to', $to)
			   ->defaults('code', $code);
	}
public function createRedirectRoute ( $ uri , $ to , $ code = 302 ) { return $ this -> addRoute ( static :: $ verbs , $ uri , get_class ( new RedirectActionController ( ) ) . '::__invoke' ) -> defaults ( 'to' , $ to ) -> defaults ( 'code' , $ code ) ; }
Registers a new redirection route with the router, which applies to all methods.
Registers a new redirection route with the router which applies to all methods .