->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_CF_IPCOUNTRY | US |
HTTP_CDN_LOOP | cloudflare |
HTTP_CF_CONNECTING_IP | 3.139.107.241 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_RAY | 87663c9dfd5a2910-ORD |
HTTP_X_FORWARDED_FOR | 3.139.107.241 |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_CONNECTION | Keep-Alive |
HTTP_HOST | masuma.com |
PATH_INFO | //catalog/wiper-blades-19/standard-wiper-blades-nano-graphite-98/index.php |
REDIRECT_STATUS | 200 |
SERVER_NAME | masuma.com |
SERVER_PORT | 80 |
SERVER_ADDR | 192.168.0.118 |
REMOTE_PORT | 62390 |
REMOTE_ADDR | 172.70.126.227 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/masuma/public |
DOCUMENT_URI | /index.php//catalog/wiper-blades-19/standard-wiper-blades-nano-graphite-98/ |
REQUEST_URI | /catalog/wiper-blades-19/standard-wiper-blades-nano-graphite-98/ |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
SCRIPT_FILENAME | /www/wwwroot/masuma/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php//catalog/wiper-blades-19/standard-wiper-blades-nano-graphite-98/index.php |
REQUEST_TIME_FLOAT | 1713459896.327 |
REQUEST_TIME | 1713459896 |