->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 |
SCRIPT_NAME | /index.php |
REQUEST_URI | /ixpx33378hetidm88uph |
QUERY_STRING | /ixpx33378hetidm88uph |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | /ixpx33378hetidm88uph |
REDIRECT_URL | /ixpx33378hetidm88uph |
REMOTE_PORT | 56600 |
SCRIPT_FILENAME | /mnt/www/wwwroot/tp_lrt1935/think/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /mnt/www/wwwroot/tp_lrt1935/think/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /mnt/www/wwwroot/tp_lrt1935/think/public |
REMOTE_ADDR | 44.200.249.42 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.26.213.99 |
SERVER_NAME | www.lrt1935.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.lrt1935.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | www.lrt1935.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
SCRIPT_URI | http://www.lrt1935.com/ixpx33378hetidm88uph |
SCRIPT_URL | /ixpx33378hetidm88uph |
REDIRECT_STATUS | 200 |
REDIRECT_SCRIPT_URI | http://www.lrt1935.com/ixpx33378hetidm88uph |
REDIRECT_SCRIPT_URL | /ixpx33378hetidm88uph |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711641081.5167 |
REQUEST_TIME | 1711641081 |