chesslablab / chess-server

Asynchronous PHP server that provides chess services over a WebSocket connection.
https://chesslablab.github.io/chess-server/
MIT License
51 stars 24 forks source link

The db or persistent data need to be separated #351

Closed joanhey closed 3 months ago

joanhey commented 3 months ago

It's the same if the user ask via API or via Websocket. If the classes than need the db are separated, work with anything !!

With API, Websockets, ...

joanhey commented 3 months ago

Sorry, you close #358 And it's a break to 2 more issues !!

programarivm commented 3 months ago

The data command container in src/Command/Data/CommandContainer.php is now responsible for instantiating the database connection on startup. See https://github.com/chesslablab/chess-server/issues/354#issuecomment-2293179065. Can you be more specific and describe what is broken?

Keep it up,