<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之旅 廣告
                [TOC] ### 組件說明 > Lying的Dispatch是內置組件,用于執行控制器的方法。 ### 配置選項 | 配置名 | 參數類型 | 可選 | 默認值 | 說明 | | --- | --- | --- | --- | --- | | class | string | 是 | lying\service\Dispatch | 不可更改 | ### 示例配置 Dispatch組件暫時不需要配置,可直接使用 ### 調用方式 ~~~php \Lying::$maker->get('dispatch'); \Lying::$maker->dispatch(); \Lying::$maker->dispatch; ~~~ ### 方法列表 ~~~php /** * 程序執行入口 * @param array|string $route 要調度的路由 * @param array $params 傳控方法的參數,若果放空則自動從GET參數獲取 * @return mixed 返回執行結果 * @throws InvalidRouteException 路由無法解析拋出異常 * @throws HttpException 缺少參數拋出異常 * @throws \ReflectionException 反射類異常 * @throws \Exception 控制器未繼承基礎控制器拋出異常 */ public function run($route, array $params = []); ~~~ ### 使用示例 > 由于有了調度器,所以在任何地方都可以執行任意一個控制器的方法 ~~~php //調用index模塊,user控制器的info方法 $result = Lying::$maker->dispatch->run('index/user/info', ['username'=>'lying']); ~~~
                  <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>

                              哎呀哎呀视频在线观看