添加路由和绑定信息记录

This commit is contained in:
thinkphp
2016-01-27 22:13:27 +08:00
parent d8e1d3eec7
commit 0f04cdf8b1
2 changed files with 4 additions and 2 deletions

View File

@@ -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');

View File

@@ -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':