#0 [0]ClassNotFoundException in Container.php line 376

类不存在: \app\controller\Index

  1. * @param string $class 类名
  2. * @param array $vars 参数
  3. * @return mixed
  4. */
  5. public function invokeClass(string $class, array $vars = [])
  6. {
  7. try {
  8. $reflect = new ReflectionClass($class);
  9. } catch (ReflectionException $e) {
  10. throw new ClassNotFoundException('class not exists: ' . $class, $class, $e);
  11. }
  12. if ($reflect->hasMethod('__make')) {
  13. $method = $reflect->getMethod('__make');
  14. if ($method->isPublic() && $method->isStatic()) {
  15. $args = $this->bindParams($method, $vars);
  16. return $method->invokeArgs(null, $args);
  17. }
  18. }

Call Stack

  1. in Container.php line 376
  2. at Container->invokeClass() in Container.php line 308
  3. at Container->invokeMethod() in Container.php line 360
  4. at Container->invoke() in Callback.php line 27
  5. at Callback->exec() in Dispatch.php line 89
  6. at Dispatch->run() in Route.php line 760
  7. at Route->think\{closure}() in Pipeline.php line 59
  8. at Pipeline->think\{closure}() in Pipeline.php line 65
  9. at Pipeline->then() in Route.php line 761
  10. at Route->dispatch() in Http.php line 210
  11. at Http->dispatchToRoute() in Http.php line 200
  12. at Http->think\{closure}() in Pipeline.php line 59
  13. at Pipeline->think\{closure}() in MultiApp.php line 65
  14. at MultiApp->handle()
  15. at call_user_func() in Middleware.php line 142
  16. at Middleware->think\{closure}() in Pipeline.php line 84
  17. at Pipeline->think\{closure}() in SessionInit.php line 67
  18. at SessionInit->handle()
  19. at call_user_func() in Middleware.php line 142
  20. at Middleware->think\{closure}() in Pipeline.php line 84
  21. at Pipeline->think\{closure}() in TraceDebug.php line 71
  22. at TraceDebug->handle()
  23. at call_user_func() in Middleware.php line 142
  24. at Middleware->think\{closure}() in Pipeline.php line 84
  25. at Pipeline->think\{closure}() in Pipeline.php line 65
  26. at Pipeline->then() in Http.php line 201
  27. at Http->runWithRequest() in Http.php line 162
  28. at Http->run() in index.php line 20

#1 [-1]ReflectionException in Container.php line 374

Class \app\controller\Index does not exist

  1. * 调用反射执行类的实例化 支持依赖注入
  2. * @access public
  3. * @param string $class 类名
  4. * @param array $vars 参数
  5. * @return mixed
  6. */
  7. public function invokeClass(string $class, array $vars = [])
  8. {
  9. try {
  10. $reflect = new ReflectionClass($class);
  11. } catch (ReflectionException $e) {
  12. throw new ClassNotFoundException('class not exists: ' . $class, $class, $e);
  13. }
  14. if ($reflect->hasMethod('__make')) {
  15. $method = $reflect->getMethod('__make');
  16. if ($method->isPublic() && $method->isStatic()) {
  17. $args = $this->bindParams($method, $vars);
  18. return $method->invokeArgs(null, $args);

Call Stack

  1. in Container.php line 374
  2. at ReflectionClass->__construct() in Container.php line 374
  3. at Container->invokeClass() in Container.php line 308
  4. at Container->invokeMethod() in Container.php line 360
  5. at Container->invoke() in Callback.php line 27
  6. at Callback->exec() in Dispatch.php line 89
  7. at Dispatch->run() in Route.php line 760
  8. at Route->think\{closure}() in Pipeline.php line 59
  9. at Pipeline->think\{closure}() in Pipeline.php line 65
  10. at Pipeline->then() in Route.php line 761
  11. at Route->dispatch() in Http.php line 210
  12. at Http->dispatchToRoute() in Http.php line 200
  13. at Http->think\{closure}() in Pipeline.php line 59
  14. at Pipeline->think\{closure}() in MultiApp.php line 65
  15. at MultiApp->handle()
  16. at call_user_func() in Middleware.php line 142
  17. at Middleware->think\{closure}() in Pipeline.php line 84
  18. at Pipeline->think\{closure}() in SessionInit.php line 67
  19. at SessionInit->handle()
  20. at call_user_func() in Middleware.php line 142
  21. at Middleware->think\{closure}() in Pipeline.php line 84
  22. at Pipeline->think\{closure}() in TraceDebug.php line 71
  23. at TraceDebug->handle()
  24. at call_user_func() in Middleware.php line 142
  25. at Middleware->think\{closure}() in Pipeline.php line 84
  26. at Pipeline->think\{closure}() in Pipeline.php line 65
  27. at Pipeline->then() in Http.php line 201
  28. at Http->runWithRequest() in Http.php line 162
  29. at Http->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /plist/47
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /plist/47
REMOTE_PORT 37598
SCRIPT_FILENAME /www/wwwroot/cms.cyykwl.com/public/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/cms.cyykwl.com/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/cms.cyykwl.com/public
REMOTE_ADDR 3.237.24.82
SERVER_PORT 80
SERVER_ADDR 122.114.158.137
SERVER_NAME lnhyaz.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at lnhyaz.com Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST lnhyaz.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
proxy-nokeepalive 1
REDIRECT_STATUS 200
REDIRECT_PATH_INFO plist/47
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711698985.3487
REQUEST_TIME 1711698985
0.059143s