chesslablab / chess-server

Asynchronous PHP chess server.
https://chesslablab.github.io/chess-server/
MIT License
47 stars 24 forks source link

The db or persistent data need to be separated #351

Closed joanhey closed 1 month ago

joanhey commented 1 month 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 1 month ago

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

programarivm commented 1 month 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,