->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 | bae |
HOME | /home/bae |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.adlerchina.com |
HTTP_CLIENTIP | 54.196.52.45 |
HTTP_X_FORWARDED_FOR | 54.196.52.45 |
HTTP_X_FORWARDED_PROTO | http |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.adlerchina.com |
SERVER_ADDR | 172.17.0.113 |
REMOTE_PORT | |
REMOTE_ADDR | 54.196.52.45 |
SERVER_SOFTWARE | nginx/1.16.1 |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /home/bae/app |
DOCUMENT_URI | /index.php/adl/newproduct1_9_1/477.html |
REQUEST_URI | /adl/newproduct1_9_1/477.html |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
SERVER_PORT | 80 |
PATH_INFO | /adl/newproduct1_9_1/477.html |
SCRIPT_NAME | /index.php/adl/newproduct1_9_1/477.html |
SCRIPT_FILENAME | /home/bae/app/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/adl/newproduct1_9_1/477.html/adl/newproduct1_9_1/477.html |
REQUEST_TIME_FLOAT | 1711728248.2017 |
REQUEST_TIME | 1711728248 |