event.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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. 'bind' => [
  14. ],
  15. 'listen' => [
  16. 'AppInit' => [],
  17. 'HttpRun' => [],
  18. 'HttpEnd' => [],
  19. 'LogLevel' => [],
  20. 'LogWrite' => [],
  21. ],
  22. 'subscribe' => [
  23. crmeb\subscribes\SystemSubscribe::class,//后台系统事件订阅类
  24. crmeb\subscribes\OrderSubscribe::class,//订单事件订阅类
  25. crmeb\subscribes\ProductSubscribe::class,//产品事件订阅类
  26. crmeb\subscribes\UserSubscribe::class,//用户事件订阅类
  27. crmeb\subscribes\MaterialSubscribe::class,//素材事件订阅类
  28. crmeb\subscribes\MessageSubscribe::class,//消息事件订阅类
  29. crmeb\subscribes\TaskSubscribe::class,//定时任务事件订阅类
  30. ],
  31. ];