$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];
HOSTNAME | ca495add4bcc |
PHP_INI_DIR | /usr/local/etc/php |
SHLVL | 1 |
HOME | /home/www-data |
PHP_LDFLAGS | -Wl,-O1 -pie |
PHP_CFLAGS | -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
PHP_VERSION | 7.4.33 |
COMPOSER_HOME | /tmp/composer |
GPG_KEYS | 42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312 |
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.4.33.tar.xz.asc |
PHP_URL | https://www.php.net/distributions/php-7.4.33.tar.xz |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
LD_PRELOAD | /usr/lib/preloadable_libiconv.so php |
PHPIZE_DEPS | autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c |
PWD | /www |
PHP_SHA256 | 924846abf93bc613815c55dd3f5809377813ac62a9ec4eb3778675b82a27b927 |
USER | www-data |
HTTP_HOST | macheng.com.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
REDIRECT_STATUS | 200 |
SERVER_NAME | macheng.com.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.162.83 |
REMOTE_PORT | 55692 |
REMOTE_ADDR | 44.222.116.199 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/macheng.com.cn/html/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/fcxx/article/type/esf/id/26.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/fcxx/article/type/esf/id/26.html |
SCRIPT_FILENAME | /var/www/html/public//index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711670037.5338 |
REQUEST_TIME | 1711670037 |
DS | / |