workbunny/webman-rabbitmq

启动直接报错

Closed this issue · 5 comments

PHP:8.1
workerman:4.1.14

请提供以下报错信息

请提供一份可复现问题的最小样例,以及composer包的版本信息

我这边直接新创建webman后直接使用该插件,
使用./webman workbunny:rabbitmq-builder test --mode=queue 命令后启动就报错

bunny/bunny                      v0.5.5  Performant pure-PHP AMQP (RabbitMQ) sync/async (ReactPHP) library
doctrine/inflector               2.0.10  PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and sin...
monolog/monolog                  2.9.3   Sends your logs to files, sockets, inboxes, databases and various web services
nikic/fast-route                 v1.3.0  Fast request router for PHP
psr/container                    2.0.2   Common Container Interface (PHP FIG PSR-11)
psr/log                          3.0.0   Common interface for logging libraries
react/event-loop                 v1.5.0  ReactPHP's core reactor event loop that libraries can use for evented I/O.
react/promise                    v2.11.0 A lightweight implementation of CommonJS Promises/A for PHP
symfony/console                  v6.4.6  Eases the creation of beautiful and testable command line interfaces
symfony/deprecation-contracts    v3.4.0  A generic function and convention to trigger deprecation notices
symfony/polyfill-ctype           v1.29.0 Symfony polyfill for ctype functions
symfony/polyfill-intl-grapheme   v1.29.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-normalizer v1.29.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring        v1.29.0 Symfony polyfill for the Mbstring extension
symfony/service-contracts        v3.4.2  Generic abstractions related to writing services
symfony/string                   v6.4.4  Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
webman/console                   v1.3.6  Webman console
workbunny/webman-rabbitmq        2.1.1   Webman plugin workbunny/webman-rabbitmq
workerman/rabbitmq               v1.0.8  Asynchronous rabbitmq client for PHP based on workerman.
workerman/webman-framework       v1.5.16 High performance HTTP Service Framework.
workerman/workerman              v4.1.15 An asynchronous event driven PHP framework for easily building fast, scalable network applications.

我使用最新包2.1.1,使用builder创建示例消费者,启动并无报错,请检查rabbitmq配置、消费者类

image
image
image