->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 | 50eb19443cf714762e10ca4e3aff28da |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /sitemap.html |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /sitemap.html |
REMOTE_PORT | 59202 |
SCRIPT_FILENAME | /www/wwwroot/my12369.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/my12369.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/my12369.com/public |
REMOTE_ADDR | 50.2.78.2 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.17.0.2 |
SERVER_NAME | www.my12369.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.my12369.com Port 80 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin |
HTTP_COOKIE | PHPSESSID=50eb19443cf714762e10ca4e3aff28da |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.my12369.com |
HTTP_USER_AGENT | Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot) |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
REDIRECT_PATH_INFO | sitemap.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1732166669.349 |
REQUEST_TIME | 1732166669 |
APP_DEBUG | 1 |
APP_DEFAULT_TIMEZONE | Asia/Shanghai |
DATABASE_TYPE | mysql |
DATABASE_HOSTNAME | 127.0.0.1 |
DATABASE_DATABASE | ntbdbs |
DATABASE_USERNAME | ntbdbs |
DATABASE_PASSWORD | h8Z6GSZrZNbbsjZE |
DATABASE_HOSTPORT | 3306 |
DATABASE_CHARSET | utf8mb4 |
DATABASE_DEBUG | 1 |
DATABASE_PREFIX | tp_ |
LANG_DEFAULT_LANG | zh-cn |
PHP_FLOAT_DIG | 15 |
PHP_FLOAT_EPSILON | 2.2204460492503E-16 |
PHP_FLOAT_MIN | 2.2250738585072E-308 |
PHP_FLOAT_MAX | 1.7976931348623E+308 |
PHP_OS_FAMILY | Linux |