->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 | /product/lhr-c12pa-nmk-303/ |
QUERY_STRING | s=/product/lhr-c12pa-nmk-303/ |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/2.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=/product/lhr-c12pa-nmk-303/ |
REDIRECT_URL | /product/lhr-c12pa-nmk-303/ |
REMOTE_PORT | 50860 |
SCRIPT_FILENAME | /www/wwwroot/contrinex_goods/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/contrinex_goods/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | https |
DOCUMENT_ROOT | /www/wwwroot/contrinex_goods/public |
REMOTE_ADDR | 44.222.233.8 |
SERVER_PORT | 443 |
SERVER_ADDR | 172.26.187.89 |
SERVER_NAME | www.contrinex.cn |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.contrinex.cn Port 443</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | www.contrinex.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
H2_STREAM_TAG | 6-3 |
H2_STREAM_ID | 3 |
H2_PUSHED_ON | |
H2_PUSHED | |
H2_PUSH | off |
H2PUSH | off |
HTTP2 | on |
SSL_TLS_SNI | www.contrinex.cn |
HTTPS | on |
REDIRECT_STATUS | 200 |
REDIRECT_H2_STREAM_TAG | 6-3 |
REDIRECT_H2_STREAM_ID | 3 |
REDIRECT_H2_PUSHED_ON | |
REDIRECT_H2_PUSHED | |
REDIRECT_H2_PUSH | off |
REDIRECT_H2PUSH | off |
REDIRECT_HTTP2 | on |
REDIRECT_SSL_TLS_SNI | www.contrinex.cn |
REDIRECT_HTTPS | on |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711727556.5961 |
REQUEST_TIME | 1711727556 |