foreach ($services as $service) {
$this->app->register($service);
}
}
try {
// 实例化控制器
$instance = $this->controller($this->controller);
} catch (ClassNotFoundException $e) {
throw new HttpException(404, 'controller not exists:' . $e->getClass());
}
// 注册控制器中间件
$this->registerControllerMiddleware($instance);
return $this->app->middleware->pipeline('controller')
->send($this->request)
->then(function () use ($instance) {
// 获取当前操作名
id | dicky_multicityswitch:index |
switchregion | wenzhou |
r | 1618453347 |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /plugin.php?id=dicky_multicityswitch:index&switchregion=wenzhou&r=1618453347 |
QUERY_STRING | s=plugin.php&id=dicky_multicityswitch:index&switchregion=wenzhou&r=1618453347 |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=plugin.php&id=dicky_multicityswitch:index&switchregion=wenzhou&r=1618453347 |
REDIRECT_URL | /plugin.php |
REMOTE_PORT | 42782 |
SCRIPT_FILENAME | /www/wwwroot/gejiang.net/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/gejiang.net/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/gejiang.net/public |
REMOTE_ADDR | 54.196.106.106 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.27.173.240 |
SERVER_NAME | www.gejiang.net |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.gejiang.net Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | www.gejiang.net |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711723316.5985 |
REQUEST_TIME | 1711723316 |