->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) {
// 获取当前操作名
PATH | /usr/local/bin:/bin:/usr/bin |
HTTP_ACCEPT | */* |
HTTP_HOST | www.dealandcoupon.com |
HTTP_USER_AGENT | claudebot |
HTTP_X_HTTPS | 1 |
DOCUMENT_ROOT | /home/deal58287086/public_html |
REMOTE_ADDR | 44.192.53.34 |
REMOTE_PORT | 39960 |
SERVER_ADDR | 10.128.246.150 |
SERVER_NAME | www.dealandcoupon.com |
SERVER_ADMIN | webmaster@dealandcoupon.com |
SERVER_PORT | 443 |
REQUEST_SCHEME | https |
REQUEST_URI | /tag/sunvell/ |
REDIRECT_URL | /tag/sunvell/ |
REDIRECT_REQUEST_METHOD | GET |
HTTPS | on |
REDIRECT_STATUS | 200 |
X_SPDY | HTTP2 |
SSL_PROTOCOL | TLSv1.3 |
SSL_CIPHER | TLS_AES_256_GCM_SHA384 |
SSL_CIPHER_USEKEYSIZE | 256 |
SSL_CIPHER_ALGKEYSIZE | 256 |
SCRIPT_FILENAME | /home/deal58287086/public_html/index.php |
QUERY_STRING | s=/tag/sunvell/ |
SCRIPT_URI | https://www.dealandcoupon.com/tag/sunvell/ |
SCRIPT_URL | /tag/sunvell/ |
SCRIPT_NAME | /index.php |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SOFTWARE | LiteSpeed |
REQUEST_METHOD | GET |
X-LSCACHE | on |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711649488.3392 |
REQUEST_TIME | 1711649488 |
argv | [ "s=\/tag\/sunvell\/" ] |
argc | 1 |