Using Dependency Injection for Static Values in Contexts

Can you use Dependency Injection for static values?

like if a function were to receive arguments, could you create a context for that and inject it elsewhere?

Essentially rather than a service being "yieldded" i want yield some "context" that is say an object of a few values. I could make that. aservice I suppose but it feels heavy for what I want, i'm wondering if I can just use Context for it?

seems like its just a service anyways
Was this page helpful?