->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) {
// 获取当前操作名
perPage | 100 |
USER | www |
HOME | /home/www |
HTTP_CF_IPCOUNTRY | US |
HTTP_CDN_LOOP | cloudflare |
HTTP_CF_CONNECTING_IP | 18.116.15.31 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_RAY | 876627f42fa86338-ORD |
HTTP_X_FORWARDED_FOR | 18.116.15.31 |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_CONNECTION | Keep-Alive |
HTTP_HOST | masuma.com |
PATH_INFO | //world/catalog/holders-fasteners/self-tapping-screws-and-bolts/index.php |
REDIRECT_STATUS | 200 |
SERVER_NAME | masuma.com |
SERVER_PORT | 80 |
SERVER_ADDR | 192.168.0.118 |
REMOTE_PORT | 59722 |
REMOTE_ADDR | 172.70.178.110 |
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//world/catalog/holders-fasteners/self-tapping-screws-and-bolts/ |
REQUEST_URI | /world/catalog/holders-fasteners/self-tapping-screws-and-bolts/?perPage=100 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | perPage=100 |
SCRIPT_FILENAME | /www/wwwroot/masuma/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php//world/catalog/holders-fasteners/self-tapping-screws-and-bolts/index.php |
REQUEST_TIME_FLOAT | 1713459049.9418 |
REQUEST_TIME | 1713459049 |