chesslablab / chess-server

Asynchronous PHP server that provides services of data and chess functionality to play online over a WebSocket connection.
https://chesslablab.github.io/chess-server/
MIT License
49 stars 24 forks source link

Db::getInstance is not correct #352

Closed joanhey closed 2 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.