public static function reload()
    {
        if (empty(static::$_initialState)) {
            static::$_collection = new RouteCollection();
            static::$_initialState = get_class_vars(get_called_class());

            return;
        }
        foreach (static::$_initialState as $key => $val) {
            if ($key !== '_initialState') {
                static::${$key} = $val;
            }
        }
        static::$_collection = new RouteCollection();
    }
public static function reload()
    {
        if (empty(static::$_initialState)) {
            static::$_collection = new RouteCollection();
            static::$_initialState = get_class_vars(get_called_class());

            return;
        }
        foreach (static::$_initialState as $key => $val) {
            if ($key !== '_initialState') {
                static::${$key} = $val;
            }
        }
        static::$_collection = new RouteCollection();
    }
public static function reload ( ) { if ( empty ( static :: $ _initialState ) ) { static :: $ _collection = new RouteCollection ( ) ; static :: $ _initialState = get_class_vars ( get_called_class ( ) ) ; return ; } foreach ( static :: $ _initialState as $ key => $ val ) { if ( $ key !== '_initialState' ) { static :: $ { $ key } = $ val ; } } static :: $ _collection = new RouteCollection ( ) ; }
Reloads default Router settings. Resets all class variables and
removes all connected routes.

@return void
Reloads default Router settings . Resets all class variables and removes all connected routes .