$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];
think_var | zh-cn |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /home/wwwroot/ktc-med/public/index.php |
QUERY_STRING | s=//dynamic/5024.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /dynamic/5024.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /home/wwwroot/ktc-med/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.14.1 |
REMOTE_ADDR | 35.172.231.232 |
REMOTE_PORT | 57904 |
SERVER_ADDR | 172.31.239.142 |
SERVER_PORT | 80 |
SERVER_NAME | ktc-med.com |
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.ktc-med.com |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711873.2645 |
REQUEST_TIME | 1711711873 |
QINIU_FUNCTIONS_VERSION | 7.4.0 |