Closed reypm closed 5 years ago
Admittedly it's been a while since I've run the 1.x code in production, but the dependency is removed in master (upcoming 2.0 release) via https://github.com/GeniusesOfSymfony/WebSocketBundle/commit/18ace24525d943de0347ffc09ff9b5d493124644. I think it can safely be removed in the 1.x branch as well since if I'm remembering the reason I went for that change correctly, the token storage can't actually be reliably used within the websocket process since it's a single long running process and the token in storage effectively gets changed on every client connection.
For 1.8.13, try removing these lines in the GosWebSocketExtension
class, these lines in the WebsocketAuthenticationProvider::getToken()
method, and these lines in the WebsocketAuthenticationProvider
constructor and see what happens. That should effectively remove the dependency on the SecurityBundle services (note you still need symfony/security-core
installed since the TokenInterface
is used a bit).
After a fresh installation of the bundle using the
composer require gos/web-socket-bundle
which added the required classes toconfig/bundles.php
and run the commandphp bin/console gos:websocket:server
the following message pops up:The version installed by the
composer require
were: