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