$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 | 3mbqh4u83h16a6upn3p38faan0 |
acw_tc | 7b39758216988168558054263e66225a1c3a1ee5fd9c0cc50553123572635e |
USER | www |
HOME | /home/www |
HTTP_X5_UUID | e0bc19611d98c56b651cce8f8a466776 |
HTTP_X_SINFO | on |
HTTP_X_REAL_IP | 107.158.145.18 |
HTTP_EAGLEEYE_RPCID | 0.1 |
HTTP_COOKIE | PHPSESSID=3mbqh4u83h16a6upn3p38faan0; acw_tc=7b39758216988168558054263e66225a1c3a1ee5fd9c0cc50553123572635e |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_EAGLEEYE_TRACEID | 2760820116988179531878964e39a6 |
HTTP_X_FORWARDED_CLUSTER | waf, |
HTTP_X_FORWARDED_PROTO | https |
HTTP_X_FORWARDED_FOR | 107.158.145.18 |
HTTP_WL_PROXY_CLIENT_IP | 107.158.145.18 |
HTTP_WEB_SERVER_TYPE | nginx |
HTTP_X_CLIENT_IP | 107.158.145.18 |
HTTP_X_TRUE_IP | 107.158.145.18 |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com) |
HTTP_HOST | www.befar.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.befar.com |
SERVER_PORT | 443 |
SERVER_ADDR | 192.168.254.2 |
REMOTE_PORT | 62330 |
REMOTE_ADDR | 39.96.130.1 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /Home/Education |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/Home/Education |
SCRIPT_FILENAME | /www/wwwroot/cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1698817953.2198 |
REQUEST_TIME | 1698817953 |
TEMP_HTML_PATH | ./html/ |