Composer GOS Websocket捆绑软件symfony 2.8依赖故障/异常

时间:2018-10-02 15:39:57

标签: composer-php symfony-2.8

嗨,我想使用gos websocket捆绑包,但始终收到此错误

PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\UndefinedMethodException: 
Attempted to call an undefined method named "setArgument" of class 
"Symfony\Component\DependencyInjection\Definition".
Did you mean to call e.g. "addArgument", "getArgument", "getArguments" 
or "setArguments"? in /var/www/vhosts/foo/vendor/gos/web- 
socket-bundle/DependencyInjection/CompilerPass/PingableDriverCompilerPass.php:37

那么看来该接口与symfony 2.8不兼容?这是随作曲家安装的版本

gos/pnctl-event-loop-emitter         v0.1.7             
gos/pubsub-router-bundle             v0.3.4             
gos/web-socket-bundle                v1.8.13            
gos/websocket-client                 v0.1.2 


symfony/symfony                      v2.8.11

任何人都知道问题是什么,我可以从这里想到什么?

1 个答案:

答案 0 :(得分:0)

我在运行于PHP 5.4的项目中使用了Thruway library作为websocket(也与PHP 7兼容)。如果您正处于项目中设置websocket的早期阶段,建议您切换到Thruway,它具有明确的文档和支持。