$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];
PHP_EXTRA_CONFIGURE_ARGS | --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi |
HOSTNAME | party.ustc.edu.cn |
PHP_INI_DIR | /usr/local/etc/php |
HOME | /var/www |
PHP_LDFLAGS | -Wl,-O1 -pie |
PHP_CFLAGS | -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
PHP_MD5 | |
PHP_VERSION | 7.2.34 |
GPG_KEYS | 1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F |
PHP_CPPFLAGS | -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
PHP_ASC_URL | https://www.php.net/distributions/php-7.2.34.tar.xz.asc |
PHP_URL | https://www.php.net/distributions/php-7.2.34.tar.xz |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
PHPIZE_DEPS | autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c |
PWD | /var/www/html |
PHP_SHA256 | 409e11bc6a2c18707dfc44bc61c820ddfd81e17481470f3405ee7822d8379903 |
USER | www-data |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_FORWARDED_FOR | 44.200.74.73 |
HTTP_X_REAL_IP | 44.200.74.73 |
HTTP_HOST | dangxiao.ustc.edu.cn |
PATH_INFO | /index/info/38 |
SCRIPT_FILENAME | /var/www/kddx/public//index.php |
REDIRECT_STATUS | 200 |
SERVER_NAME | dangxiao.ustc.edu.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 202.38.95.52 |
REMOTE_PORT | 14526 |
REMOTE_ADDR | 202.38.64.248 |
SERVER_SOFTWARE | nginx/1.19.3 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.0 |
DOCUMENT_ROOT | /var/www/kddx/public |
DOCUMENT_URI | /index.php/index/info/38 |
REQUEST_URI | /index.php/index/info/38 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/index/info/38 |
REQUEST_TIME_FLOAT | 1711677519.853 |
REQUEST_TIME | 1711677519 |
argv | [] |
argc | 0 |
PHP_EXTRA_CONFIGURE_ARGS | --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi |
HOSTNAME | party.ustc.edu.cn |
PHP_INI_DIR | /usr/local/etc/php |
HOME | /var/www |
PHP_LDFLAGS | -Wl,-O1 -pie |
PHP_CFLAGS | -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
PHP_MD5 | |
PHP_VERSION | 7.2.34 |
GPG_KEYS | 1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F |
PHP_CPPFLAGS | -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
PHP_ASC_URL | https://www.php.net/distributions/php-7.2.34.tar.xz.asc |
PHP_URL | https://www.php.net/distributions/php-7.2.34.tar.xz |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
PHPIZE_DEPS | autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c |
PWD | /var/www/html |
PHP_SHA256 | 409e11bc6a2c18707dfc44bc61c820ddfd81e17481470f3405ee7822d8379903 |
USER | www-data |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_FORWARDED_FOR | 44.200.74.73 |
HTTP_X_REAL_IP | 44.200.74.73 |
HTTP_HOST | dangxiao.ustc.edu.cn |
PATH_INFO | /index/info/38 |
SCRIPT_FILENAME | /var/www/kddx/public//index.php |
REDIRECT_STATUS | 200 |
SERVER_NAME | dangxiao.ustc.edu.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 202.38.95.52 |
REMOTE_PORT | 14526 |
REMOTE_ADDR | 202.38.64.248 |
SERVER_SOFTWARE | nginx/1.19.3 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.0 |
DOCUMENT_ROOT | /var/www/kddx/public |
DOCUMENT_URI | /index.php/index/info/38 |
REQUEST_URI | /index.php/index/info/38 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/index/info/38 |
REQUEST_TIME_FLOAT | 1711677519.853 |
REQUEST_TIME | 1711677519 |
argv | [] |
argc | 0 |
APP_DEBUG | true |
CMF_ROOT | /var/www/kddx/ |
CMF_DATA | /var/www/kddx/data/ |
APP_PATH | /var/www/kddx/app/ |
WEB_ROOT | /var/www/kddx/public/ |
HTMLPURIFIER_PREFIX | /var/www/kddx/vendor/ezyang/htmlpurifier/library |