浏览代码

Merge branch 'dev' of http://code.travelzs.com:3000/root/Qii into dev

Zhu Jinhui 7 年之前
父节点
当前提交
18efd5ca92
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      Qii/Qii.php

+ 9 - 0
Qii/Qii.php

@@ -47,8 +47,17 @@ class Qii extends Application
     {
         parent::__construct();
     }
+    /**
+     * Instance func
+     * 
+     **/
     public static function getInstance()
     {
+        if(func_num_args() > 0)
+        {
+            $args = func_get_args();
+            return call_user_func_array(array('\Qii\Autoloader\Factory', 'getInstance'), $args);    
+        }
 	    return Factory::getInstance('\Qii');
     }
     /**