mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 18:42:49 +08:00
将所有主要逻辑代码迁移到extend中,并在service中注册调用;
This commit is contained in:
@@ -2,10 +2,7 @@
|
||||
|
||||
// 事件定义文件
|
||||
|
||||
use app\common\event\AdminLoginSuccess\LogEvent;
|
||||
use app\common\event\AdminLoginType\DemoEvent;
|
||||
|
||||
$event = [
|
||||
return [
|
||||
'bind' => [
|
||||
],
|
||||
|
||||
@@ -16,19 +13,13 @@ $event = [
|
||||
'LogLevel' => [],
|
||||
'LogWrite' => [],
|
||||
'AdminLoginSuccess' => [
|
||||
LogEvent::class,
|
||||
|
||||
],
|
||||
'AdminLoginType' => [
|
||||
DemoEvent::class,
|
||||
|
||||
],
|
||||
],
|
||||
|
||||
'subscribe' => [
|
||||
],
|
||||
];
|
||||
|
||||
$listen = include __DIR__ . '/common/app/listen.php';
|
||||
|
||||
$event['listen'] = array_merge($event['listen'], $listen);
|
||||
|
||||
return $event;
|
||||
|
||||
Reference in New Issue
Block a user