/** * Add a route to the route redirection list. * * @param Route $route the route to be added * * @return Route the added route */ public static function &addRoute(Route &$route) { //add the given route to the routes list $route->isSpecialCallback() === false ? self::$routes[] =& $route : (self::$callbacks[] =& $route); return $route; }