mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
清理技术债务;增加后台登录成功事件;
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user