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

Db::getInstance is not correct #352

Closed joanhey closed 3 months ago

joanhey commented 3 months ago

Only work with the first config.

If we need another db config, return the same instance from the first config.

programarivm commented 3 months ago

See:

joanhey commented 3 months ago

It's not related, but we can improve this class.