->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) {
// 获取当前操作名
PHPSESSID | 4591d9ee8526e8cb4b7a0b9e831cafbb |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=4591d9ee8526e8cb4b7a0b9e831cafbb |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | Mozilla/5.0 (X11; Linux i686; rv:114.0) Gecko/20100101 Firefox/114.0 |
HTTP_X_FORWARDED_PORT | 9080 |
HTTP_X_FORWARDED_HOST | www.zs-meta.com |
HTTP_X_FORWARDED_PROTO | https |
HTTP_X_FORWARDED_FOR | 170.130.200.186, 172.23.0.1 |
HTTP_X_REAL_IP | 172.23.0.1 |
HTTP_HOST | www.zs-meta.com |
REDIRECT_STATUS | 200 |
SERVER_NAME | _ |
SERVER_PORT | 80 |
SERVER_ADDR | 172.17.0.5 |
REMOTE_PORT | 55634 |
REMOTE_ADDR | 172.16.53.96 |
SERVER_SOFTWARE | nginx/1.22.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /home/wwwroot/www-zswl/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /product/aaas.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//product/aaas.html |
SCRIPT_FILENAME | /home/wwwroot/www-zswl/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1720237437.0909 |
REQUEST_TIME | 1720237437 |