->setAction($this->actionName);
}
public function exec()
{
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) {
// 获取当前操作名
PHPSESSID | 7d82ecfbb25c202987308729019e40b9 |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /info/1158/3089.html |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /info/1158/3089.html |
REMOTE_PORT | 51970 |
SCRIPT_FILENAME | /www/wwwroot/cssc-ses.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/cssc-ses.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/cssc-ses.com/public |
REMOTE_ADDR | 170.130.206.126 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.8.137 |
SERVER_NAME | www.csic-cse.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.csic-cse.com Port 80 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_COOKIE | PHPSESSID=7d82ecfbb25c202987308729019e40b9 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.csic-cse.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
proxy-nokeepalive | 1 |
SCRIPT_URI | /info/1158/3089.html |
SCRIPT_URL | /info/1158/3089.html |
REDIRECT_STATUS | 200 |
REDIRECT_PATH_INFO | info/1158/3089.html |
REDIRECT_SCRIPT_URI | /info/1158/3089.html |
REDIRECT_SCRIPT_URL | /info/1158/3089.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1731267784.214 |
REQUEST_TIME | 1731267784 |
APP_DEBUG | 1 |
APP_DEFAULT_TIMEZONE | Asia/Shanghai |
DATABASE_TYPE | mysql |
DATABASE_HOSTNAME | 127.0.0.1 |
DATABASE_DATABASE | cssc |
DATABASE_USERNAME | cssc |
DATABASE_PASSWORD | dGwy4mENPP34Dtxy |
DATABASE_HOSTPORT | 3306 |
DATABASE_CHARSET | utf8mb4 |
DATABASE_DEBUG | 1 |
DATABASE_PREFIX | tp_ |
LANG_DEFAULT_LANG | zh-cn |