* @param integer|Response $code 状态码 或者 Response对象实例
* @param string $message 错误信息
* @param array $header 参数
*/
function abort($code, string $message = '', array $header = [])
{
if ($code instanceof Response) {
throw new HttpResponseException($code);
} else {
throw new HttpException($code, $message, null, $header);
}
}
}
if (!function_exists('app')) {
/**
* 快速获取容器中的实例 支持依赖注入
* @template T
* @param string|class-string<T> $name 类名或标识 默认获取当前应用实例
last_time | 1711711296 |
USER | www |
HOME | /home/www |
HTTP_HOST | business.wien.ren |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | theme.wien.ren |
SERVER_PORT | 80 |
SERVER_ADDR | 172.17.32.193 |
REMOTE_PORT | 50808 |
REMOTE_ADDR | 3.237.24.82 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/theme.wien.ren/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /portal/article/index/id/22.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=portal/article/index/id/22.html |
SCRIPT_FILENAME | /www/wwwroot/theme.wien.ren/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711296.234 |
REQUEST_TIME | 1711711296 |