Comments (1)
The Hydrator interface is something that will be probably removed in the future, because it was introduced back in 3.0 when transitioning from netresearch/json-mapper to our own fork of another hydrator, later extended and improved, so the integration between the nutgram and its hydrator is much more tigher than in the beginning.
Those are the changes/features needed that led to that tigher integration:
- Flexible enum casting, needed when telegram changes things that are not in our control (eg. https://github.com/nutgram/nutgram/blob/master/src/Telegram/Types/Inline/InlineQueryResultLocation.php#L21)
- abstract type resolvers: solve the correct class to instantiate based on the input json object (eg. https://github.com/nutgram/nutgram/blob/master/src/Telegram/Types/Chat/ChatMember.php#L21)
- dependecy injection: ability to inject services inside the DTOs that are instantiated (eg. https://github.com/nutgram/nutgram/blob/master/src/Telegram/Types/BaseType.php#L29)
- explicit types for arrays (eg. https://github.com/nutgram/nutgram/blob/master/src/Telegram/Types/Message/Message.php#L224)
And there is probably more. As you can see many of those features are declared via attributes, which are going to be completely ignored if you pick any other hydrator
from nutgram.
Related Issues (20)
- [BUG] onCallbackQueryData() handler cant parse parametrs HOT 2
- Undefined variable $update in RunningMode/Webhook.php on line 74 [BUG] HOT 1
- [BUG] Bulk Messenger just sending to one chat HOT 3
- [BUG] Cannot resolve 'SergiX44\Nutgram\Telegram\Types\WebApp\WebAppInfo' HOT 2
- [BUG] Bulk message stops in first error HOT 1
- [BUG] Conversations not restoring state when using auto-wire container HOT 1
- [BUG] starting inline conversation from server
- [BUG] starting an inline conversation from custom step HOT 1
- [BUG] "Serialization of 'Closure' is not allowed" when using Dependency Injection HOT 2
- [BUG] Bot username regex HOT 1
- Better DI injection services for Commands and Conversations HOT 1
- Is it possible to set default params value in sendMessage (and other methods) when bot init? [FEATURE] HOT 2
- [FEATURE] Passing parameters to the next step of conversation without setUserData and serialised in webhook mode HOT 2
- [BUG] starting inline conversation from server HOT 2
- [BUG] Conversation does not store it's chat_id HOT 1
- [BUG] Can not sendMessage to Group by chat_id HOT 3
- [BUG] Inline menu HOT 2
- [FEATURE] sendMediaGroup
- [BUG] Can't get EntityManager in Command class HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nutgram.