$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];
PHPSESSID | 24noql2ljlsjsrohujho5fguk2 |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/wantong-tech.net/public/index.php |
QUERY_STRING | s=/chanpinzhongxin/35557.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /chanpinzhongxin/35557.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/wantong-tech.net/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | https |
HTTPS | on |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.20.2 |
REMOTE_ADDR | 50.2.189.194 |
REMOTE_PORT | 54616 |
SERVER_ADDR | 172.31.110.232 |
SERVER_PORT | 443 |
SERVER_NAME | wantong-tech.net |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.wantong-tech.net |
HTTP_ACCEPT | */* |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_COOKIE | PHPSESSID=24noql2ljlsjsrohujho5fguk2 |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1713442819.1145 |
REQUEST_TIME | 1713442819 |
MAX_MENU_LENGTH | 3 |
MAX_SUB_MENU_LENGTH | 5 |