webman-php / console

webman console plugin
https://www.workerman.net/webman
22 stars 14 forks source link

在console 的command中使用workman/stomp 会缺少Worker::$globalEvent #7

Closed xianghuawe closed 2 years ago

xianghuawe commented 2 years ago

错误信息

/app # php webman fix:producer_assistant_message_transform_0628

  [think\exception\ThrowableError]
  Fatal error: Call to a member function add() on null

Exception trace:
 () at /app/vendor/workerman/workerman/Connection/AsyncTcpConnection.php:213
 Workerman\Connection\AsyncTcpConnection->connect() at /app/vendor/workerman/stomp/src/Client.php:174
 Workerman\Stomp\Client->connect() at /app/vendor/teamones/stomp-queue/src/Client.php:60
 Webman\Stomp\Client->__construct() at /app/vendor/teamones/stomp-queue/src/Client.php:105
 Webman\Stomp\Client::connection() at /app/vendor/teamones/stomp-queue/src/Client.php:118
 Webman\Stomp\Client::__callStatic() at /app/app/common/command/TransformProducerMessageFormat.php:37
 common\command\TransformProducerMessageFormat->execute() at /app/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at /app/vendor/symfony/console/Application.php:1024
 Symfony\Component\Console\Application->doRunCommand() at /app/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at /app/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at /app/webman:37
walkor commented 2 years ago

workerman/stomp只能用在workerman运行环境

Message ID: @.***>

xianghuawe commented 2 years ago

workerman/stomp只能用在workerman运行环境 Message ID: @.***>

好的