<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # **interfaces接口** 目錄結構 ``` ├─interfaces │ JobInterface.php │ ListenerInterface.php │ MiddlewareInterface.php ``` * JobInterface 屬于消息隊列接口類 ## ListenerInterface 屬于事件監聽接口類 創建一個事件監聽類,并且必須完成`handle`方法 ``` <?php crmeb\listeners; use crmeb\interfaces\ListenerInterface; class UserListener implements ListenerInterface { public function handle($event){ } } ``` ## 注冊UserListener事件 注冊容器地址:\app\adminapi\event.php ``` return [ 'listen' => [ 'AppInit' => [], 'HttpRun' => [], 'HttpEnd' => [], 'LogLevel' => [], 'LogWrite' => [], 'UserLogin'=>[ \crmeb\listeners\user\UserListener::class ] ] ]; ``` ## MiddlewareInterface 屬于中間件接口類 在創建中間件的時候可以繼承接口類,并且必須完成`handle`方法 ``` <?php namespase app\http\middleware; use crmeb\interfaces\MiddlewareInterface; class AdminLogMiddleware implements MiddlewareInterface { /** * @param Request $request * @param \Closure $next * @return mixed */ public function handle(Request $request, \Closure $next) { //具體操作邏輯 } ``` 路由調用 ``` Route::group('export', function () { })->middleware([ \app\adminapi\middleware\AdminLogMiddleware::class ]); ```
                  <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>

                              哎呀哎呀视频在线观看