Private/Polyfony/Router.php
public static function redirect(string $source_url, string $redirection_url, int $status_code=301)  {
		// create a new route
		$route = new Route();
		// add it to the list of known routes
		self::$_routes[$route->name] = $route
			->setUrl($source_url)
			->setRedirect($redirection_url, $status_code);
		// return the route for finer tuning
		return self::$_routes[$route->name];
	}
public static function redirect(string $source_url, string $redirection_url, int $status_code=301)  {
		// create a new route
		$route = new Route();
		// add it to the list of known routes
		self::$_routes[$route->name] = $route
			->setUrl($source_url)
			->setRedirect($redirection_url, $status_code);
		// return the route for finer tuning
		return self::$_routes[$route->name];
	}
public static function redirect ( string $ source_url , string $ redirection_url , int $ status_code = 301 ) { // create a new route $ route = new Route ( ) ; // add it to the list of known routes self :: $ _routes [ $ route -> name ] = $ route -> setUrl ( $ source_url ) -> setRedirect ( $ redirection_url , $ status_code ) ; // return the route for finer tuning return self :: $ _routes [ $ route -> name ] ; }
new syntax for quick redirects
new syntax for quick redirects