Ligare.web.middleware.dependency_injection
Ligare.web’s integration with Injector and Flask Injector.
Functions
|
Bind any Connexion middleware classes whose __call__ member has a __bindings__ attribute. |
|
|
|
Configures dependency injection and registers all Flask application dependencies. |
Classes
|
|
Enables dependency injection for any blueprint methods. |
- protocol Ligare.web.middleware.dependency_injection.MiddlewareRoutine[source]
typing.Protocol
.Classes that implement this protocol must have the following methods / attributes:
- class Ligare.web.middleware.dependency_injection.OpenAPIEndpointDependencyInjectionMiddleware(flask_injector: FlaskInjector)[source]
Enables dependency injection for any blueprint methods.