Skip to content

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

Open
@popfaker

Description

@popfaker

当只是使用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

请问如何解决或者屏蔽?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions