private static function checkUrlBind(&$url, &$rules, $depr = '/')
{
if (!empty(self::$bind)) {
$type = self::$bind['type'];
$bind = self::$bind[$type];
// 记录绑定信息
App::$debug && Log::record('[ BIND ] ' . var_export($bind, true), 'info');
// 如果有URL绑定 则进行绑定检测
switch ($type) {
case 'class':
// 绑定到类
return self::bindToClass($url, $bind, $depr);
case 'namespace':
// 绑定到命名空间
return self::bindToNamespace($url, $bind, $depr);
}
}
return false;
}