->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) {
// 获取当前操作名
mdpn/ |
PHPSESSID | 50b5a15cb6987abfa376e060f3a29ee3 |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /mdpn/ |
QUERY_STRING | mdpn/ |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | mdpn/ |
REDIRECT_URL | /mdpn/ |
REMOTE_PORT | 36244 |
SCRIPT_FILENAME | /www/wwwroot/www/117.50.120.41/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/www/117.50.120.41/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/www/117.50.120.41/public |
REMOTE_ADDR | 45.38.154.98 |
SERVER_PORT | 80 |
SERVER_ADDR | 10.61.184.243 |
SERVER_NAME | www.fsgykg.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.fsgykg.com Port 80 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /sbin:/usr/sbin:/bin:/usr/bin |
HTTP_COOKIE | PHPSESSID=50b5a15cb6987abfa376e060f3a29ee3 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.fsgykg.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1714152660.8204 |
REQUEST_TIME | 1714152660 |