$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];
USER | seasons |
HOME | /home/seasons |
FCGI_ROLE | RESPONDER |
REDIRECT_UNIQUE_ID | ZgVI9H1E3w46Pfkjx-lnJgAAABM |
REDIRECT_no-gzip | 1 |
REDIRECT_dont-vary | 1 |
REDIRECT_HTTPS | on |
REDIRECT_SSL_TLS_SNI | seasonslee.net |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgVI9H1E3w46Pfkjx-lnJgAAABM |
no-gzip | 1 |
dont-vary | 1 |
HTTPS | on |
SSL_TLS_SNI | seasonslee.net |
proxy-nokeepalive | 1 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://seasonslee.net/Public/img/reasoncourse/mastering.jpg |
HTTP_HOST | seasonslee.net |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache/2 |
SERVER_NAME | seasonslee.net |
SERVER_ADDR | 103.11.103.114 |
SERVER_PORT | 443 |
REMOTE_ADDR | 18.234.55.154 |
DOCUMENT_ROOT | /home/seasons/domains/seasonslee.net/private_html |
REQUEST_SCHEME | https |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/seasons/domains/seasonslee.net/private_html |
SERVER_ADMIN | webmaster@seasonslee.net |
SCRIPT_FILENAME | /home/seasons/domains/seasonslee.net/private_html/index.php |
REMOTE_PORT | 59788 |
REDIRECT_URL | /Public/img/reasoncourse/mastering.jpg |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /Public/img/reasoncourse/mastering.jpg |
SCRIPT_NAME | /index.php |
PATH_INFO | /Public/img/reasoncourse/mastering.jpg |
PATH_TRANSLATED | redirect:/index.php/Public/img/reasoncourse/mastering.jpg/img/reasoncourse/mastering.jpg |
PHP_SELF | /index.php/Public/img/reasoncourse/mastering.jpg |
REQUEST_TIME_FLOAT | 1711622388.1084 |
REQUEST_TIME | 1711622388 |