GeniusesOfSymfony / WebsocketAppDemo

Demo of GosWebSocketBundle
MIT License
40 stars 24 forks source link

cboden/ratchet vs gos/ratchet #2

Closed mfoti closed 8 years ago

mfoti commented 9 years ago

Hi,

I'm unable to run the demo because this error:

[Symfony\Component\Debug\Exception\ContextErrorException]
  Catchable Fatal Error: Argument 1 passed to Ratchet\Wamp\TopicManager::__construct() must implement interface Ratchet\Wamp\WampServerInterface, none given, called in /WebsocketAppDemo/app/cache/dev/appDevDebugProjectContainer.php on line 2060 and defined

This I guess is because both cboden/ratchet and gos/ratchet libs are required as deps. The code seems wrote for gos/ratchet but the problem is that the two libs have the same namespace with different constructors.

Can you fix it?

jjsaunier commented 9 years ago

Yes I have create a gos/ratchet repo in order to unlock fast feature without waiting official ratchet release. So I kept the same namespace because it's not intended to replace ratchet at all.

The reverse side, it's you can't use the official ratchet :(

mfoti commented 9 years ago

but can be fixed?

jjsaunier commented 9 years ago

no, because if I fixed it, I break all application which is using WebsocketBundle

pe77 commented 8 years ago

JESUS!

pls bro. I can't use the demo.

same problem here

jjsaunier commented 8 years ago

Yeah bro, I know it's anoying.

So it's resolved !!!!!! :tada:

@skler I finally find a way via composer replace feature :)

KhanMaytok commented 8 years ago

I have the error too. It is not fixed :/

jjsaunier commented 8 years ago

Are you sure to have the latest version ?

asciicast

pe77 commented 8 years ago

My problem was a version. I update(btw, delete/install again), then work! Try this. =D