->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 | 6010e41a4293659adfee3389da5ee489 |
think_lang | zh-cn |
USER | nobody |
HOME | / |
HTTP_COOKIE | PHPSESSID=6010e41a4293659adfee3389da5ee489; think_lang=zh-cn |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.81lcd.com |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
REDIRECT_STATUS | 200 |
SERVER_NAME | wh-nbd277u84j5grcjxzyj.my3w.com |
SERVER_PORT | 80 |
SERVER_ADDR | 10.21.211.213 |
REMOTE_PORT | 56600 |
REMOTE_ADDR | 107.158.144.110 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/user/htdocs |
DOCUMENT_URI | /index.php |
REQUEST_URI | /news/1/ |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/news/1/ |
PATH_INFO | |
SCRIPT_FILENAME | /data/user/htdocs/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1726736396.1433 |
REQUEST_TIME | 1726736396 |