$instance = $this->app->controller($this->controller,
$this->rule->getConfig('url_controller_layer'),
$this->rule->getConfig('controller_suffix'),
$this->rule->getConfig('empty_controller'));
if ($instance instanceof Controller) {
$instance->registerMiddleware();
}
} 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 | acfjm89qsl8mvgt00er4e1gm35 |
ASP_NET_SessionId | ecog0cvhzy5ym3w1rxb2nxxx |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=acfjm89qsl8mvgt00er4e1gm35; ASP.NET_SessionId=ecog0cvhzy5ym3w1rxb2nxxx |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.whdc.cn |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.whdc.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.17.0.4 |
REMOTE_PORT | 38458 |
REMOTE_ADDR | 172.252.209.138 |
SERVER_SOFTWARE | nginx/unknown |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /web/www/whdc.cn/www.whdc.cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /zzjg/xyjg.htm |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/zzjg/xyjg.htm |
SCRIPT_FILENAME | /web/www/whdc.cn/www.whdc.cn/public/index.php |
PHP_VALUE | open_basedir=/web/www/whdc.cn/www.whdc.cn/public:/tmp/:/web/www/whdc.cn/www.whdc.cn/ |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1611110200.7833 |
REQUEST_TIME | 1611110200 |
MAX_MENU_LENGTH | 3 |
MAX_SUB_MENU_LENGTH | 5 |