$this->app['hook']->listen('module_init');
try {
// 实例化控制器
$instance = $this->app->controller($this->controller,
$this->rule->getConfig('url_controller_layer'),
$this->rule->getConfig('controller_suffix'),
$this->rule->getConfig('empty_controller'));
} catch (ClassNotFoundException $e) {
throw new HttpException(404, 'controller not exists:' . $e->getClass());
}
$this->app['middleware']->controller(function (Request $request, $next) use ($instance) {
// 获取当前操作名
$action = $this->actionName . $this->rule->getConfig('action_suffix');
if (is_callable([$instance, $action])) {
// 执行操作方法
$call = [$instance, $action];
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/orlesh.com/public/index.php |
QUERY_STRING | s=/index.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/orlesh.com/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.18.0 |
REMOTE_ADDR | 101.132.57.178 |
REMOTE_PORT | 59922 |
SERVER_ADDR | 172.19.127.198 |
SERVER_PORT | 80 |
SERVER_NAME | orlesh.com |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_HOST | orlesh.com |
HTTP_VIA | cn6425.l1, l2et2-2.l2 |
HTTP_EAGLEEYE_TRACEID | 3da0c01317108249551254617e |
HTTP_ALI_CDN_REAL_PORT | 54884 |
HTTP_ALI_CDN_REAL_IP | 3.235.199.19 |
HTTP_ALI_SWIFT_LOG_HOST | orlesh.com |
HTTP_ALI_SWIFT_STAT_HOST | orlesh.com |
HTTP_X_FORWARDED_FOR | 3.235.199.19 |
HTTP_X_CLIENT_SCHEME | http |
HTTP_ALI_SWIFT_FORCE_TTL_CODE | 400=0 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_ALI_CDN_APPVIEW_NAME | cdn-tengine |
HTTP_ALI_SWIFT_ORIGIN_HOST | orlesh.com |
HTTP_X_ALICDN_DA_VIA | 61.160.192.98,114.80.59.252 |
HTTP_AUTHORIZATION2 | OSS-CDN3 LTAI4FfDH1vxXcfr3Qkh2iXR:ZlmUmTEJ8NfNInZRR7ldzyfO3uE= |
HTTP_X_AUTHORIZATION_TOKEN | 11d5beb00f7aedf692834556fd70350d |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1710824955.1323 |
REQUEST_TIME | 1710824955 |