$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];
tag | movie_watch |
moviename | Grease |
USER | www |
HOME | /home/www |
HTTP_CF_CONNECTING_IP | 3.87.209.162 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_RAY | 86bb42bd9a919c58-IAD |
HTTP_X_FORWARDED_FOR | 3.87.209.162 |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_CF_IPCOUNTRY | US |
HTTP_CDN_LOOP | cloudflare |
HTTP_HOST | www.canada-film.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | ads.adlinkcenter.com |
SERVER_PORT | 443 |
SERVER_ADDR | 45.62.123.202 |
REMOTE_PORT | 32102 |
REMOTE_ADDR | 172.70.135.113 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/ads.adlinkcenter.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /out/offer?tag=movie_watch&moviename=Grease |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/out/offer&tag=movie_watch&moviename=Grease |
SCRIPT_FILENAME | /www/wwwroot/ads.adlinkcenter.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711667082.093 |
REQUEST_TIME | 1711667082 |