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

类不存在: app\zndl\controller\RedirectController

  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. $object = $method->invokeArgs(null, $args);
  17. $this->invokeAfter($class, $object);
  18. return $object;

Call Stack

  1. in Container.php line 378
  2. at Container->invokeClass() in Container.php line 310
  3. at Container->invokeMethod() in Container.php line 362
  4. at Container->invoke() in Callback.php line 27
  5. at Callback->exec() in Dispatch.php line 90
  6. at Dispatch->run() in Route.php line 785
  7. at Route->think\{closure}() in Pipeline.php line 59
  8. at Pipeline->think\{closure}() in Pipeline.php line 66
  9. at Pipeline->then() in Route.php line 786
  10. at Route->dispatch() in Http.php line 216
  11. at Http->dispatchToRoute() in Http.php line 206
  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 85
  17. at Pipeline->think\{closure}() in BaseMiddleware.php line 30
  18. at BaseMiddleware->handle()
  19. at call_user_func() in Middleware.php line 142
  20. at Middleware->think\{closure}() in Pipeline.php line 85
  21. at Pipeline->think\{closure}() in LikeAdminAllowMiddleware.php line 49
  22. at LikeAdminAllowMiddleware->handle()
  23. at call_user_func() in Middleware.php line 142
  24. at Middleware->think\{closure}() in Pipeline.php line 85
  25. at Pipeline->think\{closure}() in TraceDebug.php line 71
  26. at TraceDebug->handle()
  27. at call_user_func() in Middleware.php line 142
  28. at Middleware->think\{closure}() in Pipeline.php line 85
  29. at Pipeline->think\{closure}() in Pipeline.php line 66
  30. at Pipeline->then() in Http.php line 207
  31. at Http->runWithRequest() in Http.php line 170
  32. at Http->run() in index.php line 30

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

Class "app\zndl\controller\RedirectController" 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. $object = $method->invokeArgs(null, $args);

Call Stack

  1. in Container.php line 376
  2. at ReflectionClass->__construct() in Container.php line 376
  3. at Container->invokeClass() in Container.php line 310
  4. at Container->invokeMethod() in Container.php line 362
  5. at Container->invoke() in Callback.php line 27
  6. at Callback->exec() in Dispatch.php line 90
  7. at Dispatch->run() in Route.php line 785
  8. at Route->think\{closure}() in Pipeline.php line 59
  9. at Pipeline->think\{closure}() in Pipeline.php line 66
  10. at Pipeline->then() in Route.php line 786
  11. at Route->dispatch() in Http.php line 216
  12. at Http->dispatchToRoute() in Http.php line 206
  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 85
  18. at Pipeline->think\{closure}() in BaseMiddleware.php line 30
  19. at BaseMiddleware->handle()
  20. at call_user_func() in Middleware.php line 142
  21. at Middleware->think\{closure}() in Pipeline.php line 85
  22. at Pipeline->think\{closure}() in LikeAdminAllowMiddleware.php line 49
  23. at LikeAdminAllowMiddleware->handle()
  24. at call_user_func() in Middleware.php line 142
  25. at Middleware->think\{closure}() in Pipeline.php line 85
  26. at Pipeline->think\{closure}() in TraceDebug.php line 71
  27. at TraceDebug->handle()
  28. at call_user_func() in Middleware.php line 142
  29. at Middleware->think\{closure}() in Pipeline.php line 85
  30. at Pipeline->think\{closure}() in Pipeline.php line 66
  31. at Pipeline->then() in Http.php line 207
  32. at Http->runWithRequest() in Http.php line 170
  33. at Http->run() in index.php line 30

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER http://www.dinuanquan.com/thread-357-1-1.html
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.dinuanquan.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME dinuanquan.com
SERVER_PORT 443
SERVER_ADDR 172.21.16.11
REMOTE_PORT 56854
REMOTE_ADDR 44.192.247.185
SERVER_SOFTWARE nginx/1.20.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/ditu/public
DOCUMENT_URI /index.php
REQUEST_URI /thread-357-1-1.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/thread-357-1-1.html
SCRIPT_FILENAME /www/wwwroot/ditu/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711617692.5205
REQUEST_TIME 1711617692
0.030974s