->setAction($this->actionName);}public function exec(){try {// 实例化控制器$instance = $this->controller($this->controller);} catch (ClassNotFoundException $e) {throw new HttpException(404, 'controller not exists:' . $e->getClass());}return $this->responseWithMiddlewarePipeline($instance, $this->actionName);}/*** 实例化访问控制器* @access public* @param string $name 资源地址
| REQUEST_METHOD | GET |
| REQUEST_URI | /baike/sitemap.xml |
| PATH_INFO | /baike/sitemap.xml |
| REQUEST_TIME | 1762596859 |
| REQUEST_TIME_FLOAT | 1762596859.7874 |
| SERVER_PROTOCOL | HTTP/1.1 |
| SERVER_PORT | 5801 |
| REMOTE_PORT | 34266 |
| REMOTE_ADDR | 192.168.1.161 |
| HTTP_CONNECTION | upgrade |
| HTTP_X_REAL_IP | 216.73.216.209 |
| HTTP_X_FORWARDED_FOR | 216.73.216.209 |
| HTTP_HOST | baike.eeyke.com |
| HTTP_ACCEPT | */* |
| HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |