tags.php 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. // 应用行为扩展定义文件
  12. return [
  13. // 应用初始化
  14. 'app_init' => [],
  15. // 应用开始
  16. 'app_begin' => [],
  17. // 模块初始化
  18. 'module_init' => [],
  19. // 操作开始执行
  20. 'action_begin' => [],
  21. // 视图内容过滤
  22. 'view_filter' => [],
  23. // 日志写入
  24. 'log_write' => [],
  25. // 应用结束
  26. 'app_end' => [],
  27. //队列钩子处理,需要开启pcntl扩展
  28. 'worker_before_sleep' => ['app\\common\\behavior\\DispatchSignal'],
  29. 'worker_daemon_start' => ['app\\common\\behavior\\Signal']
  30. ];