hyperf / watcher

[READ ONLY]
18 stars 11 forks source link

Fatal error: Uncaught Error: Class "Hyperf\Support\DotenvManager" not found in watcher/src/Listener/ReloadDotenvAndConfigListener.php #27

Closed popfaker closed 4 months ago

popfaker commented 4 months ago

hyperf3.1安装watcher扩展后,启动服务报错,缺少类 Hyperf\Support\DotenvManager

安装情况如下:

$ composer info | grep hyperf
hyperf/cache                       v3.1.27 A cache component for hyperf.
hyperf/code-parser                 v3.1.15 A code parser component for Hyperf.
hyperf/codec                       v3.1.27 A codec component for Hyperf.
hyperf/collection                  v3.1.27 Hyperf Collection package which come from illuminate/collections
hyperf/command                     v3.1.22 Command for hyperf
hyperf/conditionable               v3.1.27 Hyperf Macroable package which come from illuminate/conditionable
hyperf/config                      v3.1.27 An independent component that provides configuration container.
hyperf/context                     v3.1.27 A coroutine/application context library.
hyperf/contract                    v3.1.28 The contracts of Hyperf.
hyperf/coordinator                 v3.1.27 Hyperf Coordinator
hyperf/coroutine                   v3.1.27 Hyperf Coroutine
hyperf/database                    v3.1.26 A flexible database library.
hyperf/db-connection               v3.1.15 A hyperf db connection handler for hyperf/database.
hyperf/devtool                     v3.1.15 A Devtool for Hyperf.
hyperf/di                          v3.1.15 A DI for Hyperf.
hyperf/dispatcher                  v3.1.15 A HTTP Server for Hyperf.
hyperf/engine                      v2.10.5 Coroutine engine provided by swoole.
hyperf/engine-contract             v1.9.1  Contract for Coroutine Engine
hyperf/event                       v3.1.15 an event manager that implements PSR-14.
hyperf/exception-handler           v3.1.22 Exception handler for hyperf
hyperf/framework                   v3.1.23 A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.
hyperf/guzzle                      v3.1.27 Swoole coroutine handler for guzzle
hyperf/http-message                v3.1.15 microservice framework base on swoole
hyperf/http-server                 v3.1.27 A HTTP Server for Hyperf.
hyperf/logger                      v3.1.27 A logger component for hyperf.
hyperf/macroable                   v3.1.27 Hyperf Macroable package which come from illuminate/macroable
hyperf/memory                      v3.1.27 An independent component that use to operate and manage memory.
hyperf/model-cache                 v3.1.15 A model cache component for hyperf.
hyperf/model-listener              v3.1.27 A model listener for Hyperf.
hyperf/paginator                   v3.1.25 A paginator component for hyperf.
hyperf/pipeline                    v3.1.27 Hyperf Macroable package which come from illuminate/pipeline
hyperf/pool                        v3.1.27 An independent universal connection pool component.
hyperf/process                     v3.1.27 A process component for hyperf.
hyperf/redis                       v3.1.27 A redis component for hyperf.
hyperf/serializer                  v3.1.27 A serializer component for Hyperf.
hyperf/server                      v3.1.27 A base server library for Hyperf.
hyperf/stdlib                      v3.1.27 A stdlib component for Hyperf.
hyperf/stringable                  v3.1.27 Hyperf Stringable package which come from illuminate/support
hyperf/support                     v3.1.27 A support component for Hyperf.
hyperf/tappable                    v3.1.27 Hyperf Macroable package which come from illuminate/tappable
hyperf/testing                     v3.1.27 Testing for hyperf
hyperf/translation                 v3.1.27 An independent translation component, forked by illuminate/translation.
hyperf/utils                       v3.1.27 A tools package that could help developer solved the problem quickly.
hyperf/validation                  v3.1.28 hyperf validation
hyperf/watcher                     v3.1.31 Hot reload watcher for Hyperf
popfaker commented 4 months ago

hyperf/support 版本过低导致,执行composer update即可解决。 hyperf/support对应版本:v3.1.31