4 ms·
Do you like the dependency injection? In Flask applications (and I suppose, Quart) you can use the `current_app` object to hold onto a service container that i
by yawgmoth 3y ago
Do you like the dependency injection?
In Flask applications (and I suppose, Quart) you can use the `current_app` object to hold onto a service container that itself can register/retrieve services.
It's very manual, and is annoying because you have to retrieve the container and then all of your services in your handler/controller, but there's no convention nor magic (and can give you type info), so I've rolled with it.