middleware.php 1.1 KB

1234567891011121314151617181920212223242526
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. return [
  12. // 全局请求缓存
  13. // \think\middleware\CheckRequestCache::class,
  14. // 多语言加载
  15. // \think\middleware\LoadLangPack::class,
  16. // Session初始化
  17. \think\middleware\SessionInit::class,
  18. //多语言初始化
  19. \think\middleware\LoadLangPack::class,
  20. // 页面Trace调试
  21. // \think\middleware\TraceDebug::class,
  22. //初始化基础中间件
  23. \app\http\middleware\BaseMiddleware::class,
  24. // 多语言支持
  25. \think\middleware\LoadLangPack::class,
  26. ];