$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 | egps22ck90pmk09jcpt91a5mri |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | //ZBC-30739.html |
QUERY_STRING | s=ZBC-30739.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=ZBC-30739.html |
REDIRECT_URL | /ZBC-30739.html |
REMOTE_PORT | 50584 |
SCRIPT_FILENAME | /www/wwwroot/shenzhou/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/shenzhou/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/shenzhou/public |
REMOTE_ADDR | 107.158.225.18 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.20.7.250 |
SERVER_NAME | www.sz1989.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.sz1989.com Port 80 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin |
HTTP_COOKIE | PHPSESSID=egps22ck90pmk09jcpt91a5mri |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.sz1989.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1713496321.9774 |
REQUEST_TIME | 1713496321 |
APP_DEBUG | true |
CMF_ROOT | /www/wwwroot/shenzhou/ |
CMF_DATA | /www/wwwroot/shenzhou/data/ |
APP_PATH | /www/wwwroot/shenzhou/app/ |
WEB_ROOT | /www/wwwroot/shenzhou/public/ |
HTMLPURIFIER_PREFIX | /www/wwwroot/shenzhou/vendor/ezyang/htmlpurifier/library |