Add Context for DI injected classes
Description
The Context is a simple object storage used by the DI. When the DI injects a class, it will first look into the context if the class is available there. If so, the class from the context will be injected. This context can replace the global variables and reduces the memory footage.
Use-Cases
- Context is available in the DI
- Context is used for services
- Global variables are deprecated
- @nocontext flag is available for DI
Todo
-
Wiki updated