mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 05:52:48 +08:00
添加路由和绑定信息记录
This commit is contained in:
@@ -78,8 +78,8 @@ class App
|
||||
// 未指定调度类型 则进行URL路由检测
|
||||
self::route($config);
|
||||
}
|
||||
// 记录调度信息
|
||||
Log::record('[ DISPATCH ] ' . var_export(self::$dispatch, true), 'info');
|
||||
// 记录路由信息
|
||||
Log::record('[ ROUTE ] ' . var_export(self::$dispatch, true), 'info');
|
||||
// 监听app_begin
|
||||
APP_HOOK && Hook::listen('app_begin');
|
||||
|
||||
|
||||
@@ -419,6 +419,8 @@ class Route
|
||||
private static function checkUrlBind(&$url, &$rules)
|
||||
{
|
||||
if (!empty(self::$bind['type'])) {
|
||||
// 记录绑定信息
|
||||
Log::record('[ BIND ] ' . var_export(self::$bind, true), 'info');
|
||||
// 如果有URL绑定 则进行绑定检测
|
||||
switch (self::$bind['type']) {
|
||||
case 'class':
|
||||
|
||||
Reference in New Issue
Block a user