event.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. // 事件定义文件
  3. return [
  4. 'bind' => [
  5. ],
  6. 'listen' => [
  7. 'AppInit' => [],
  8. 'HttpRun' => [],
  9. 'HttpEnd' => [],
  10. 'LogLevel' => [],
  11. 'LogWrite' => [],
  12. //swoole 初始化事件
  13. 'swoole.init' => [
  14. \qiniu\listeners\InitSwooleLockListen::class, //初始化
  15. ],
  16. //swoole 启动事件
  17. // 'swoole.workerStart' => [
  18. // \crmeb\listeners\SwooleCronListen::class, //定时任务
  19. // ],
  20. 'swoole.workerExit' => [],
  21. 'swoole.workerError' => [],
  22. 'swoole.workerStop' => [],
  23. // 'swoole.shutDown' => [\qiniu\listeners\SwooleShutdownListen::class],//swoole 停止事件
  24. // 'swoole.websocket.user' => [\app\webscoket\handler\UserHandler::class],//socket 用户调用事件
  25. // 'swoole.websocket.kefu' => [\app\webscoket\handler\KefuHandler::class],//socket 客服事件
  26. // 'swoole.websocket.admin' => [\app\webscoket\handler\AdminHandler::class],//socket 后台事件
  27. 'config.create' => [\app\listener\system\config\CreateSuccess::class],//创建配置事件
  28. 'config.delete' => [\app\listener\system\config\DeleteSuccess::class],//删除配置事件
  29. 'config.update' => [\app\listener\system\config\StatusSuccess::class],//删除配置事件
  30. 'user.cancelUser' => [\app\listener\user\CancelUser::class],
  31. ],
  32. 'subscribe' => [
  33. ],
  34. ];