清理技术债务;增加后台登录成功事件;

This commit is contained in:
2023-09-09 13:43:29 +08:00
parent 1b0ae546c3
commit a2c14391b1
5 changed files with 55 additions and 23 deletions

View File

@@ -1,17 +1,30 @@
<?php
// 事件定义文件
return [
'bind' => [
use app\common\event\AdminLoginSuccess\LogEvent;
$event = [
'bind' => [
],
'listen' => [
'AppInit' => [],
'HttpRun' => [],
'HttpEnd' => [],
'listen' => [
'AppInit' => [],
'HttpRun' => [],
'HttpEnd' => [],
'LogLevel' => [],
'LogWrite' => [],
'AdminLoginSuccess' => [
LogEvent::class,
],
],
'subscribe' => [
],
];
$listen = include __DIR__ . '/listen.php';
$event['listen'] = array_merge($event['listen'], $listen);
return $event;