$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];
PATH | C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;;C:\Program Files\python;C:\Program Files\python\Scripts;;C:\BtSoft\panel\script; |
SYSTEMROOT | C:\Windows |
COMSPEC | C:\Windows\system32\cmd.exe |
PATHEXT | .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC |
WINDIR | C:\Windows |
_FCGI_SHUTDOWN_EVENT_ | 27708 |
HTTP_CONNECTION | close |
SCRIPT_NAME | /index.php |
REQUEST_URI | /show/18/38.html |
QUERY_STRING | s=/show/18/38.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=/show/18/38.html |
REDIRECT_URL | /show/18/38.html |
REMOTE_PORT | 58816 |
SCRIPT_FILENAME | C:/wwwroot/ti-capital.cn/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | C:/wwwroot/ti-capital.cn |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | C:/wwwroot/ti-capital.cn |
REMOTE_ADDR | 44.222.113.28 |
SERVER_PORT | 80 |
SERVER_ADDR | 10.45.140.101 |
SERVER_NAME | ti-capital.cn |
SERVER_SOFTWARE | Apache/2.4.55 (Win64) OpenSSL/1.1.1s mod_fcgid/2.3.9a |
SERVER_SIGNATURE | |
SystemRoot | C:\Windows |
HTTP_HOST | ti-capital.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711631.3686 |
REQUEST_TIME | 1711711631 |