$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_HOST | pergo.com.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
SCRIPT_FILENAME | /home/wwwroot/Pergo/public/index.php |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.pergo.com.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.19.183.214 |
REMOTE_PORT | 42338 |
REMOTE_ADDR | 3.93.162.26 |
SERVER_SOFTWARE | nginx/1.16.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /home/wwwroot/Pergo/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /product/type/%E5%BC%BA%E5%8C%96%E5%A4%8D%E5%90%88%E5%9C%B0%E6%9D%BF/series/%E7%8E%B0%E4%BB%A3%E6%9D%BF/name/%E5%BA%84%E5%9B%AD%E6%A9%A1%E6%9C%A8 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/product/type/%E5%BC%BA%E5%8C%96%E5%A4%8D%E5%90%88%E5%9C%B0%E6%9D%BF/series/%E7%8E%B0%E4%BB%A3%E6%9D%BF/name/%E5%BA%84%E5%9B%AD%E6%A9%A1%E6%9C%A8 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711874.195 |
REQUEST_TIME | 1711711874 |
APP_DEBUG | true |
CMF_ROOT | /home/wwwroot/Pergo/ |
CMF_DATA | /home/wwwroot/Pergo/data/ |
APP_PATH | /home/wwwroot/Pergo/app/ |
WEB_ROOT | /home/wwwroot/Pergo/public/ |
HTMLPURIFIER_PREFIX | /home/wwwroot/Pergo/vendor/ezyang/htmlpurifier/library |