$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];
HOSTNAME | 365tui |
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_VERSION | 7.3.33 |
GPG_KEYS | CBAF69F173A0FEA4B537F470D66C9593118BCCB6 F38252826ACD957EF380D39F2F7956BC5DA04B5D |
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.3.33.tar.xz.asc |
PHP_URL | https://www.php.net/distributions/php-7.3.33.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 | 166eaccde933381da9516a2b70ad0f447d7cec4b603d07b9a916032b215b90cc |
TZ | Asia/Shanghai |
USER | www-data |
HTTP_HOST | 365878.net |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | *.com |
SERVER_PORT | 80 |
SERVER_ADDR | 45.125.218.235 |
REMOTE_PORT | 50708 |
REMOTE_ADDR | 44.223.39.199 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/admin.365365058.com/public_www |
DOCUMENT_URI | /index.php |
REQUEST_URI | /?s=%E6%81%92%E8%BE%BE%E8%AE%A1%E5%88%92%E7%BE%A4%E3%80%90%E2%94%8B%E6%8B%9B%E5%95%86%E9%83%A82%E2%92%8F7%E2%92%8F01705_%E6%89%A3%E3%80%93%E3%80%91 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=%E6%81%92%E8%BE%BE%E8%AE%A1%E5%88%92%E7%BE%A4%E3%80%90%E2%94%8B%E6%8B%9B%E5%95%86%E9%83%A82%E2%92%8F7%E2%92%8F01705_%E6%89%A3%E3%80%93%E3%80%91 |
SCRIPT_FILENAME | /www/wwwroot/admin.365365058.com/public_www/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711728032.4215 |
REQUEST_TIME | 1711728032 |
DocumentRoot | /www/wwwroot/admin.365365058.com/public_www |