$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];
page | 6 |
USER | www |
HOME | /home/www |
HTTP_HOST | yqsmesc.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | yqsmesc.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.0.253 |
REMOTE_PORT | 58314 |
REMOTE_ADDR | 3.87.133.69 |
SERVER_SOFTWARE | nginx/1.22.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/yingquan/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /home/visit/index.html?page=6 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/home/visit/index.html&page=6 |
SCRIPT_FILENAME | /www/wwwroot/yingquan/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711626411.66 |
REQUEST_TIME | 1711626411 |
MAX_MENU_LENGTH | 3 |
MAX_SUB_MENU_LENGTH | 5 |
QR_MODE_NUL | -1 |
QR_MODE_NUM | 0 |
QR_MODE_AN | 1 |
QR_MODE_8 | 2 |
QR_MODE_KANJI | 3 |
QR_MODE_STRUCTURE | 4 |
QR_ECLEVEL_L | 0 |
QR_ECLEVEL_M | 1 |
QR_ECLEVEL_Q | 2 |
QR_ECLEVEL_H | 3 |
QR_FORMAT_TEXT | 0 |
QR_FORMAT_PNG | 1 |
QR_CACHEABLE | true |
QR_CACHE_DIR | /www/wwwroot/yingquan/vendor/kairos/phpqrcode/cache/ |
QR_LOG_DIR | /www/wwwroot/yingquan/vendor/kairos/phpqrcode/ |
QR_FIND_BEST_MASK | true |
QR_FIND_FROM_RANDOM | false |
QR_DEFAULT_MASK | 2 |
QR_PNG_MAXIMUM_SIZE | 1024 |
QRSPEC_VERSION_MAX | 40 |
QRSPEC_WIDTH_MAX | 177 |
QRCAP_WIDTH | 0 |
QRCAP_WORDS | 1 |
QRCAP_REMINDER | 2 |
QRCAP_EC | 3 |
QR_IMAGE | true |
QR_VECT | true |
STRUCTURE_HEADER_BITS | 20 |
MAX_STRUCTURED_SYMBOLS | 16 |
N1 | 3 |
N2 | 3 |
N3 | 40 |
N4 | 10 |