$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];
id | 543 |
USER | www |
HOME | /home/www |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_HOST | 117.50.122.202:20080 |
HTTP_X_FORWARDED_HOST | www.wzq998.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | localhost |
SERVER_PORT | 20080 |
SERVER_ADDR | 117.50.122.202 |
REMOTE_PORT | 65503 |
REMOTE_ADDR | 117.50.122.206 |
SERVER_SOFTWARE | nginx/1.19.9 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.0 |
DOCUMENT_ROOT | /data500/wwwroot/jinsan_template/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/goods/details.html?id=543 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=index/goods/details.html&id=543 |
SCRIPT_FILENAME | /data500/wwwroot/jinsan_template/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711655118.3501 |
REQUEST_TIME | 1711655118 |
APP_ROOT | /data500/wwwroot/jinsan_template |
XS_APP_ROOT | /data500/wwwroot/jinsan_template/config/xunsearch |
FILTER_VALIDATE_BOOL | 258 |
HTMLPURIFIER_PREFIX | /data500/wwwroot/jinsan_template/vendor/ezyang/htmlpurifier/library |