예제 #1
0
 /**
  * 获取Router实例
  * @return  object  Router实例
  */
 public static function getInstance()
 {
     if (empty(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
예제 #2
0
파일: router.php 프로젝트: qzsolt/framework
 private static function getInstance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }