static function get()
 {
     if (!Router::$inst) {
         Router::$inst = new Router();
     }
     return Router::$inst;
 }
Example #2
0
 /**
  * Clear the global singleton instance for this class.
  * Needed to ensure reset when switching site configurations.
  */
 static function clear()
 {
     Router::$inst = null;
 }