mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 23:42:48 +08:00
35 lines
621 B
PHP
35 lines
621 B
PHP
<?php
|
|
|
|
// 事件定义文件
|
|
|
|
use app\common\event\AdminLoginSuccess\LogEvent;
|
|
use app\common\event\AdminLoginType\DemoEvent;
|
|
|
|
$event = [
|
|
'bind' => [
|
|
],
|
|
|
|
'listen' => [
|
|
'AppInit' => [],
|
|
'HttpRun' => [],
|
|
'HttpEnd' => [],
|
|
'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;
|