$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 | nobody |
HOME | / |
HTTP_REFERER | http://www.anfosi.com/html/xwzx/xyzx/2854.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_REMOTE_HOST | 3.238.142.134 |
HTTP_X_FORWARDED_FOR | 3.238.142.134 |
HTTP_X_REAL_IP | 3.238.142.134 |
HTTP_HOST | www.anfosi.com |
REDIRECT_STATUS | 200 |
SERVER_NAME | wh-nh7d42ru3gbk64tu6g1.my3w.com |
SERVER_PORT | 80 |
SERVER_ADDR | 10.0.26.3 |
REMOTE_PORT | |
REMOTE_ADDR | 3.238.142.134 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.0 |
DOCUMENT_ROOT | /data/user/htdocs/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /html/xwzx/xyzx/2854.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/html/xwzx/xyzx/2854.html |
PATH_INFO | |
SCRIPT_FILENAME | /data/user/htdocs/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711662372.3431 |
REQUEST_TIME | 1711662372 |
APP_DEBUG | true |
CMF_ROOT | /data/user/htdocs/ |
CMF_DATA | /data/user/htdocs/data/ |
APP_PATH | /data/user/htdocs/app/ |
WEB_ROOT | /data/user/htdocs/public/ |
HTMLPURIFIER_PREFIX | /data/user/htdocs/vendor/ezyang/htmlpurifier/library |