Dependency Injection
1 min read ยท last updated atFastApi: Annotations
Learn more at https://fastapi.tiangolo.com/tutorial/dependencies/
- Preface, that this is a pattern (IoC), not always a concrete component like a DI container
- Examples
- Laravel: On the Fly https://laravel.com/docs/container
- Dotnet:
HostApplicationBuilder
on the fly https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection - Spring: Beans (also on the fly?, also annotations, but also supports xml) https://docs.spring.io/spring-framework/reference/core/beans/introduction.html
- FastApi: Annotations https://fastapi.tiangolo.com/tutorial/dependencies/
- Play: https://www.playframework.com/documentation/2.8.x/ScalaDependencyInjection
- Symfony: Codegen, yaml https://symfony.com/doc/current/service_container.html