-
-
Notifications
You must be signed in to change notification settings - Fork 964
Refactor library architecture #826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Not sure if some kind of simple event handlers or hooks wouldn't be better. DB could be 100% add-on powered by events/hooks. |
@php-telegram-bot/developers what is a point of call |
It was made that way so that running getUpdates without DB isn't default behaviour, forcing developer to take action before it can be used |
maybe we should force developers via documentation and not via code? |
Hi @akalongman I honestly don't understand why the big redesign on v1. I though that was the whole idea of v2, to leave v1 pretty much as is and build v2 with a better base. My idea was to just have a better DB management with an ORM implemented, so that at least the DB layer is more usable/extendable, especially when updating table structures etc. Also I don't quite understand why another style guide change 😕 Apart from that, this looks like a great base for v2 😁 |
When stable version is not released, any BC changes is normal and acceptable, but release version is not defined yet, we can name it anything 😊 Lets discuss this in the TG
Implementing of that in current codebase is almost impossible 😞
In final I want to make code compatible with new PSR-12 coding standard
👍 |
@akalongman Well, I'm 100% fine with removing that method and using "no database" mode when DB is not connected by default. |
This library has a few design problems and it is very hard to extend and improve functionality.
Small TODO and first steps:
Request
andDB
), or wrap them inside facadesI forgot some details in current library implementation and I will have some questions. Lets discuss them in this thread
cc @php-telegram-bot/developers
The text was updated successfully, but these errors were encountered: