->setAction($this->actionName);
}
public function exec()
{
try {
// 实例化控制器
$instance = $this->controller($this->controller);
} catch (ClassNotFoundException $e) {
throw new HttpException(404, 'controller not exists:' . $e->getClass());
}
// 注册控制器中间件
$this->registerControllerMiddleware($instance);
return $this->app->middleware->pipeline('controller')
->send($this->request)
->then(function () use ($instance) {
// 获取当前操作名
USER | www |
HOME | /home/www |
HTTP_HOST | www.mxxtx.com.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.mxxtx.com.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.19.123.153 |
REMOTE_PORT | 34688 |
REMOTE_ADDR | 54.224.52.210 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/default/mxxtx.com.cn |
DOCUMENT_URI | /index.php |
REQUEST_URI | /a/htm/zzlist/xchenshutong.htm |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/a/htm/zzlist/xchenshutong.htm |
SCRIPT_FILENAME | /www/wwwroot/default/mxxtx.com.cn/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711781871.822 |
REQUEST_TIME | 1711781871 |
APP_DEBUG | 1 |
TRACE | |
APP_DEFAULT_TIMEZONE | Asia/Shanghai |
LANG_DEFAULT_LANG | zh-cn |
PHP_OS_FAMILY | Linux |
QINIU_FUNCTIONS_VERSION | 7.2.10 |
SHOP_MODULE | shop |
SYS_VERSION_NO | 4.1.2 |
SYS_VERSION_NAME | NiuShop单商户V4版 |
SYS_VERSION | B2C_V4 |
SYS_RELEASE | 202101180001 |
__ROOT__ | http://www.mxxtx.com.cn |
__PUBLIC__ | http://www.mxxtx.com.cn/public |
__UPLOAD__ | upload |
ADDON_DIR_NAME | addon |
ADDON_PATH | addon/ |
PAGE_LIST_ROWS | 10 |
REWRITE_MODULE | true |
PUBLIC_PATH | /www/wwwroot/default/mxxtx.com.cn/public/ |
ROOT_PATH | /www/wwwroot/default/mxxtx.com.cn |
ROOT_URL | http://www.mxxtx.com.cn |
initroute_tag | true |