12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- // 事件定义文件
- return [
- 'bind' => [
- ],
- 'listen' => [
- 'AppInit' => [],
- 'HttpRun' => [],
- 'HttpEnd' => [],
- 'LogLevel' => [],
- 'LogWrite' => [],
- //swoole 初始化事件
- 'swoole.init' => [
- \qiniu\listeners\InitSwooleLockListen::class, //初始化
- ],
- //swoole 启动事件
- // 'swoole.workerStart' => [
- // \crmeb\listeners\SwooleCronListen::class, //定时任务
- // ],
- 'swoole.workerExit' => [],
- 'swoole.workerError' => [],
- 'swoole.workerStop' => [],
- // 'swoole.shutDown' => [\qiniu\listeners\SwooleShutdownListen::class],//swoole 停止事件
- // 'swoole.websocket.user' => [\app\webscoket\handler\UserHandler::class],//socket 用户调用事件
- // 'swoole.websocket.kefu' => [\app\webscoket\handler\KefuHandler::class],//socket 客服事件
- // 'swoole.websocket.admin' => [\app\webscoket\handler\AdminHandler::class],//socket 后台事件
- 'config.create' => [\app\listener\system\config\CreateSuccess::class],//创建配置事件
- 'config.delete' => [\app\listener\system\config\DeleteSuccess::class],//删除配置事件
- 'config.update' => [\app\listener\system\config\StatusSuccess::class],//删除配置事件
- 'user.cancelUser' => [\app\listener\user\CancelUser::class],
- ],
- 'subscribe' => [
- ],
- ];
|