hyperf / hyperf/gotask

当不使用mongodb时,启动报错注入错误。[ERROR] DI Reflection Manager collecting class reflections failed.

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
257
Forks
29
PR merge metrics
No merged PRs in 30d

Description

当只是使用golang的异步任务功能,没有安装mongodb包时,会出现错误:
[ERROR] DI Reflection Manager collecting class reflections failed.
File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/BulkWriteResult.php.
Exception: Interface "MongoDB\BSON\Unserializable" not found
[ERROR] DI Reflection Manager collecting class reflections failed.
File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/DeleteResult.php.
Exception: Interface "MongoDB\BSON\Unserializable" not found
[ERROR] DI Reflection Manager collecting class reflections failed.
File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/IndexInfo.php.
Exception: Interface "MongoDB\BSON\Unserializable" not found
[ERROR] DI Reflection Manager collecting class reflections failed.
File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/InsertManyResult.php.
Exception: Interface "MongoDB\BSON\Unserializable" not found
[ERROR] DI Reflection Manager collecting class reflections failed.
File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/InsertOneResult.php.
Exception: Interface "MongoDB\BSON\Unserializable" not found
[ERROR] DI Reflection Manager collecting class reflections failed.
File: /home/vagrant/code/robot-processes/vendor/hyperf/gotask/src/MongoClient/Type/UpdateResult.php.
Exception: Interface "MongoDB\BSON\Unserializable" not found

请问如何解决或者屏蔽?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.