$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 | www |
HOME | /home/www |
HTTP_X_MICROSOFTAJAX | Delta=true |
HTTP_USER_AGENT | Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36 |
HTTP_CONTENT_TYPE | application/x-www-form-urlencoded; charset=utf-8 |
HTTP_CACHE_CONTROL | no-cache |
HTTP_ACCEPT_LANGUAGE | en-US,en;q=0.5 |
HTTP_ACCEPT_ENCODING | gzip, deflate |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
HTTP_X_APPLE_STORE_FRONT | 143444,12 |
HTTP_X_APPLE_TZ | 0 |
HTTP_REFERER | https://www.baidu.com/search/spider.htm |
HTTP_HOST | jikekongbao.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | jikekongbao.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.22.57.254 |
REMOTE_PORT | 39952 |
REMOTE_ADDR | 45.41.88.246 |
SERVER_SOFTWARE | nginx/1.20.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/jikekongbao.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /news/companynews/497.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | application/x-www-form-urlencoded; charset=utf-8 |
REQUEST_METHOD | GET |
QUERY_STRING | s=/news/companynews/497.html |
SCRIPT_FILENAME | /www/wwwroot/jikekongbao.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1719901900.6081 |
REQUEST_TIME | 1719901900 |
QINIU_FUNCTIONS_VERSION | 7.4.1 |