lithium\net\http\Router::reset PHP Method

reset() public static method

Resets the Router to its default state, unloading all routes.
public static reset ( )
    public static function reset()
    {
        static::$_configurations = array();
        static::$_scope = false;
        if (isset(static::$_scopes)) {
            static::$_scopes->reset();
        }
    }

Usage Example

Esempio n. 1
0
 public function tearDown()
 {
     Router::reset();
     foreach ($this->_routes as $route) {
         Router::connect($route);
     }
 }
All Usage Examples Of lithium\net\http\Router::reset