flipkart-incubator / Krystal

Apache License 2.0
7 stars 14 forks source link

Add inputInjector to request scoped injection #257

Closed sathwik-sai closed 2 months ago

RamAnvesh commented 2 months ago

In the latest design, input injection is implemented as a Kryon decorator, rather than an output logic decorator. This done because making injected inputs available to all logics including resolver logics would need us to write separate logic decorators for resolver logics. Instead, moving input injection to a Kryon decorator allows us to inject in a single place, making it available to all the logics in a vajram.

Closing this in favour of the new design.