<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                thinkphp6核心分析 https://learnku.com/users/27146/articles?page=2](https://learnku.com/users/27146/articles?page=2 ## 實例化http應用 在入口文件中是通過App類來實例化http應用的。`$http = (new App())->http`。App類是繼承Container容器類。則可以通過容器的方式對http進行實例化。先是初始化App類。設置了項目的類庫目錄。并將自定義的容器標識綁定到容器。 ``` public function __construct(string $rootPath = ''){ // 系統核心框架目錄 $this->thinkPath = dirname(__DIR__) . DIRECTORY_SEPARATOR; // 應用根目錄 $this->rootPath = $rootPath ? rtrim($rootPath, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR : $this->getDefaultRootPath(); // app目錄 $this->appPath = $this->rootPath . 'app' . DIRECTORY_SEPARATOR; // 運行時文件 runtime 目錄 $this->runtimePath = $this->rootPath . 'runtime' . DIRECTORY_SEPARATOR; // 綁定標識到容器 if (is_file($this->appPath . 'provider.php')) { $this->bind(include $this->appPath . 'provider.php'); } // 設置容器對象實例 static::setInstance($this); // 設置容器中的對象實例 $this->instance('app', $this); $this->instance('think\Container', $this); } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看