[Discussion] Config as Global Injectable
See original GitHub issueNestjs provides the opportunity to globally Inject Modules. We could create our own Eddiebot-Config-Module
for example, which gets provided globally. On the other hand is the current workflow (importing the config in the files where its needed) probably easier for beginners with nestjs. What do you think about that? - This issue is meant for discussion
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (10 by maintainers)
Top Results From Across the Web
Best way to provide configuration parameters for objects far ...
Effectively making them static/global variables. There is a 5. solution that is more in line with oo concepts: Refactor/redesign code until all ...
Read more >Contexts and Dependency Injection - Quarkus
@ConfigProperty(name = "cool") String coolProperty;. With the notable exception of one special case discussed below, @Inject is still required for constructor ...
Read more >Global Injection and Hooking Demo - GitHub
Open the solution in Visual Studio. Go to Build -> Batch Build... Select the following three configurations, Configuration can be Debug or Release...
Read more >Dependency injection for filter attribute (non-global) - question
Hi, I have a Hangfire filter attribute class, which needs some dependencies via .NET Core's inbuilt DI, but the filter attribute is to...
Read more >Is wanting a logger and configuration service "globally" in my ...
I certainly want to use logging as a service "in case" I decide to change the implementation and thought that dependency injection seemed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’ve heard of merge conflicts - we present GitHub’s newest feature: LABEL CONFLICTS!
I could see the benefit of global “helper” functions (a good one being a substring function to allow us to ensure embed fields don’t exceed limits), but those could also be attached to the config object as methods.