->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) {
// 获取当前操作名
url | Xz_dzp/View/index.html |
USER | www |
HOME | /home/www |
HTTP_CF_CONNECTING_IP | 107.23.157.16 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_RAY | 86b8f8484dc307ed-IAD |
HTTP_X_FORWARDED_FOR | 107.23.157.16 |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_CF_IPCOUNTRY | US |
HTTP_CDN_LOOP | cloudflare |
HTTP_HOST | zgyd11.top |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | zgyd11.top |
SERVER_PORT | 443 |
SERVER_ADDR | 129.227.121.14 |
REMOTE_PORT | 32966 |
REMOTE_ADDR | 172.70.39.136 |
SERVER_SOFTWARE | nginx/1.21.4 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/ch/uni-brick/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /H5api/View/mobile.html?url=Xz_dzp/View/index.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/H5api/View/mobile.html&url=Xz_dzp/View/index.html |
SCRIPT_FILENAME | /www/wwwroot/ch/uni-brick/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711643060.8611 |
REQUEST_TIME | 1711643060 |