$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];
category_id | 6 |
SUPERVISOR_GROUP_NAME | php-fpm |
WEB_DOCUMENT_INDEX | index.php |
SUPERVISOR_SERVER_URL | unix:///.supervisor.sock |
HOSTNAME | e447eb43244d |
PHP_VERSION | 7.4.33 |
PHP_SENDMAIL_PATH | /usr/sbin/sendmail -t -i |
PHP_INI_DIR | /usr/local/etc/php |
GPG_KEYS | 42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312 |
PHP_LDFLAGS | -Wl,-O1 -pie |
WEB_DOCUMENT_ROOT | /app |
PWD | /app |
WEB_ALIAS_DOMAIN | *.vm |
WEB_PHP_TIMEOUT | 600 |
SERVICE_NGINX_CLIENT_MAX_BODY_SIZE | 50m |
HOME | /home/application |
LANG | C.UTF-8 |
APPLICATION_GID | 1000 |
DOCKER_CONF_HOME | /opt/docker/ |
PHP_SHA256 | 924846abf93bc613815c55dd3f5809377813ac62a9ec4eb3778675b82a27b927 |
PHPIZE_DEPS | autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c |
WEB_PHP_SOCKET | 127.0.0.1:9000 |
TERM | xterm |
PHP_URL | https://www.php.net/distributions/php-7.4.33.tar.xz |
APPLICATION_GROUP | application |
SHLVL | 0 |
COMPOSER_VERSION | 2 |
APPLICATION_USER | application |
PHP_CFLAGS | -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
APPLICATION_UID | 1000 |
LOG_STDOUT | /proc/1/fd/1 |
SUPERVISOR_PROCESS_NAME | php-fpmd |
LC_ALL | C.UTF-8 |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
LOG_STDERR | /proc/1/fd/2 |
CONTAINER_UID | application |
APPLICATION_PATH | /app |
PHP_ASC_URL | https://www.php.net/distributions/php-7.4.33.tar.xz.asc |
PHP_CPPFLAGS | -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
OLDPWD | / |
SUPERVISOR_ENABLED | 1 |
VIPSHOME | /usr |
USER | application |
HTTP_HOST | wemart.com |
HTTP_REFERER | http://wemart.com/cn/index?category_id=6 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
REDIRECT_STATUS | 200 |
SERVER_NAME | wemart.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.20.0.3 |
REMOTE_PORT | 52384 |
REMOTE_ADDR | 44.203.219.117 |
SERVER_SOFTWARE | nginx/1.22.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /app |
DOCUMENT_URI | /index.php |
REQUEST_URI | /cn/index?category_id=6 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//cn/index&category_id=6 |
PATH_TRANSLATED | /app |
PATH_INFO | |
SCRIPT_FILENAME | /app/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711659135.6655 |
REQUEST_TIME | 1711659135 |
argv | [ "s=\/\/cn\/index&category_id=6" ] |
argc | 1 |