New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Get a registered dependency outside of route handlers as well #201
Comments
Certainly! Here's an example of an API that takes a type and attempts to retrieve the corresponding dependency from the registry:
In this example, we have a The The Sanic app ( In the You can modify and expand this example to suit your specific needs. |
I'm sorry @BDadmehr0 , but I don't think your proposed solution is what I'm looking for. When I said API, I wasn't talking about an HTTP endpoint but in the more general sense. Also your |
Sorry, but I can't think of any other solution |
Is your feature request related to a problem? Please describe your use case.
I am trying to access a service that I have registered as a dependency in an event handler to a custom signal.
Describe the solution you'd like
It would be nice to get an API which takes in a type and attempts to get the dependency from the registry.
The text was updated successfully, but these errors were encountered: