->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) {
// 获取当前操作名
PHPSESSID | e38cf201ea4ca903633f097a4565ce1a |
USER | nginx |
HOME | /var/lib/nginx |
PATH_TRANSLATED | /data/www/changtou/publicATH_INFO |
ORIG_SCRIPT_FILENAME | /data/www/changtou/public/index.php//state-house/index.php |
ORIG_SCRIPT_NAME | /index.php//state-house/index.php |
ORIG_PATH_INFO | //state-house/ |
HTTP_COOKIE | PHPSESSID=e38cf201ea4ca903633f097a4565ce1a |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
HTTP_CONNECTION | close |
HTTP_X_FORWARDED_FOR | 104.206.93.94 |
HTTP_X_REAL_IP | 104.206.93.94 |
HTTP_HOST | www.cjtouzi.com:80 |
REDIRECT_STATUS | 200 |
SERVER_NAME | 192.168.200.121 |
SERVER_PORT | 80 |
SERVER_ADDR | 192.168.200.121 |
REMOTE_PORT | 47892 |
REMOTE_ADDR | 192.168.200.49 |
SERVER_SOFTWARE | nginx/1.20.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.0 |
DOCUMENT_ROOT | /data/www/changtou/public |
DOCUMENT_URI | /index.php//state-house/ |
REQUEST_URI | /state-house/ |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
SCRIPT_NAME | //state-house/ |
SCRIPT_FILENAME | /data/www/changtou/public/index.php |
PATH_INFO | ATH_INFO |
FCGI_ROLE | RESPONDER |
PHP_SELF | //state-house/ATH_INFO |
REQUEST_TIME_FLOAT | 1660609986.6902 |
REQUEST_TIME | 1660609986 |