$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];
TEMP | /tmp |
TMPDIR | /tmp |
TMP | /tmp |
HOSTNAME | wmbsys |
USER | nginx |
HOME | /home/nginx |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /data/wwwroot/wmdw.chengdu.cn/public/index.php |
QUERY_STRING | s=/index/i502/index.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index/i502/index.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /data/wwwroot/wmdw.chengdu.cn/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.18.0 |
REMOTE_ADDR | 36.138.217.195 |
REMOTE_PORT | 8137 |
SERVER_ADDR | 172.16.100.229 |
SERVER_PORT | 80 |
SERVER_NAME | wmdw.chengdu.cn |
REDIRECT_STATUS | 200 |
HTTP_X_REAL_IP | 44.192.93.109 |
HTTP_X_HWWAF_REAL_IP | 44.192.93.109 |
HTTP_X_HWWAF_CLIENT_IP | 44.192.93.109 |
HTTP_X_FORWARDED_FOR | 44.192.93.109 |
HTTP_HOST | wmdw.chengdu.cn |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_CLOUDWAF_TRAFFIC_TAG | 1 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711725036.443 |
REQUEST_TIME | 1711725036 |
SITE_PATH | /data/wwwroot/wmdw.chengdu.cn/public |
MAX_MENU_LENGTH | 3 |
MAX_SUB_MENU_LENGTH | 5 |