mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
改进App类
This commit is contained in:
@@ -69,6 +69,7 @@ class App
|
||||
// 设置系统时区
|
||||
date_default_timezone_set($config['default_timezone']);
|
||||
|
||||
try {
|
||||
// 监听app_init
|
||||
Hook::listen('app_init');
|
||||
|
||||
@@ -93,7 +94,7 @@ class App
|
||||
APP_DEBUG && Log::record('[ ROUTE ] ' . var_export($dispatch, true), 'info');
|
||||
// 监听app_begin
|
||||
Hook::listen('app_begin', $dispatch);
|
||||
try {
|
||||
|
||||
switch ($dispatch['type']) {
|
||||
case 'redirect':
|
||||
// 执行重定向跳转
|
||||
|
||||
Reference in New Issue
Block a user